Skip to content
Permalink
Browse files

Improves support for arbitrary numbers in data keys. Fixes #9318

  • Loading branch information
rwaldron committed Aug 5, 2011
1 parent 22028e4 commit e7af6a296b75b8583175726039f2946de27549fc
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core.js
@@ -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

0 comments on commit e7af6a2

Please sign in to comment.
You can’t perform that action at this time.