diff --git a/src/core.js b/src/core.js index 889fcd513..2bbec5c51 100644 --- a/src/core.js +++ b/src/core.js @@ -26,7 +26,7 @@ var // Matches dashed string for camelizing rmsPrefix = /^-ms-/, - rdashAlpha = /-([\da-z])/gi, + rdashAlpha = /-([a-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 7d6ebb767..f1a302784 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -1484,7 +1484,7 @@ test("jQuery.camelCase()", function() { "foo-bar": "fooBar", "foo-bar-baz": "fooBarBaz", "girl-u-want": "girlUWant", - "the-4th-dimension": "the4thDimension", + "the-4th-dimension": "the-4thDimension", "-o-tannenbaum": "OTannenbaum", "-moz-illa": "MozIlla", "-ms-take": "msTake" diff --git a/test/unit/data.js b/test/unit/data.js index 2e85acaec..98d714eb6 100644 --- a/test/unit/data.js +++ b/test/unit/data.js @@ -241,14 +241,14 @@ test("jQuery(plain Object).data(String, Object).data(String)", function() { }); test("data-* attributes", function() { - expect( 43 ); + expect( 46 ); var prop, i, l, metadata, elem, obj, obj2, check, num, num2, parseJSON = jQuery.parseJSON, div = jQuery("