mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Improves support for arbitrary numbers in data keys. Fixes #9318
This commit is contained in:
parent
22028e403f
commit
e7af6a296b
@ -46,11 +46,11 @@ var jQuery = function( selector, context ) {
|
|||||||
rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
|
rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
|
||||||
|
|
||||||
// Matches dashed string for camelizing
|
// Matches dashed string for camelizing
|
||||||
rdashAlpha = /-([a-z])/ig,
|
rdashAlpha = /-([a-z]|[0-9])/ig,
|
||||||
|
|
||||||
// Used by jQuery.camelCase as callback to replace()
|
// Used by jQuery.camelCase as callback to replace()
|
||||||
fcamelCase = function( all, letter ) {
|
fcamelCase = function( all, letter ) {
|
||||||
return letter.toUpperCase();
|
return ( letter + "" ).toUpperCase();
|
||||||
},
|
},
|
||||||
|
|
||||||
// Keep a UserAgent string for use with jQuery.browser
|
// Keep a UserAgent string for use with jQuery.browser
|
||||||
|
Loading…
Reference in New Issue
Block a user