Skip to content

Commit e7af6a2

Browse files
committed
Improves support for arbitrary numbers in data keys. Fixes #9318
1 parent 22028e4 commit e7af6a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ var jQuery = function( selector, context ) {
4646
rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
4747

4848
// Matches dashed string for camelizing
49-
rdashAlpha = /-([a-z])/ig,
49+
rdashAlpha = /-([a-z]|[0-9])/ig,
5050

5151
// Used by jQuery.camelCase as callback to replace()
5252
fcamelCase = function( all, letter ) {
53-
return letter.toUpperCase();
53+
return ( letter + "" ).toUpperCase();
5454
},
5555

5656
// Keep a UserAgent string for use with jQuery.browser

0 commit comments

Comments
 (0)