Skip to content

Commit

Permalink
Improves support for arbitrary numbers in data keys. Fixes #9318
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Aug 5, 2011
1 parent 22028e4 commit e7af6a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.js
Expand Up @@ -46,11 +46,11 @@ var jQuery = function( selector, context ) {
rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,

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

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

// Keep a UserAgent string for use with jQuery.browser
Expand Down

0 comments on commit e7af6a2

Please sign in to comment.