diff --git a/src/core.js b/src/core.js index 6ba437662..46c69b6c1 100644 --- a/src/core.js +++ b/src/core.js @@ -29,7 +29,7 @@ var // Matches dashed string for camelizing rmsPrefix = /^-ms-/, - rdashAlpha = /-([a-z])/gi, + rdashAlpha = /-([\da-z])/gi, // Used by jQuery.camelCase as callback to replace() fcamelCase = function( all, letter ) { diff --git a/test/unit/core.js b/test/unit/core.js index d1e618c8b..472c4b5af 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -1648,7 +1648,7 @@ QUnit.test( "jQuery.camelCase()", function( assert ) { "foo-bar": "fooBar", "foo-bar-baz": "fooBarBaz", "girl-u-want": "girlUWant", - "the-4th-dimension": "the-4thDimension", + "the-4th-dimension": "the4thDimension", "-o-tannenbaum": "OTannenbaum", "-moz-illa": "MozIlla", "-ms-take": "msTake" diff --git a/test/unit/data.js b/test/unit/data.js index 91002b8a0..c402e20bb 100644 --- a/test/unit/data.js +++ b/test/unit/data.js @@ -373,51 +373,30 @@ QUnit.test( "jQuery(plain Object).data(String, Object).data(String)", function( } ); QUnit.test( "data-* attributes", function( assert ) { - assert.expect( 46 ); + assert.expect( 43 ); var prop, i, l, metadata, elem, obj, obj2, check, num, num2, parseJSON = jQuery.parseJSON, - div = jQuery( "