aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-08-05 07:45:05 -0700
committerDave Methvin <dave.methvin@gmail.com>2011-08-05 07:45:05 -0700
commitb22c9046529852c7ce567df13397849e11e2b9cc (patch)
tree15ca534d9f5b415f2a23530da169300e74a9c0a3 /src
parent37254bab91b6e006716029c599bab06792015925 (diff)
parente7af6a296b75b8583175726039f2946de27549fc (diff)
downloadjquery-b22c9046529852c7ce567df13397849e11e2b9cc.tar.gz
jquery-b22c9046529852c7ce567df13397849e11e2b9cc.zip
Merge pull request #456 from rwldrn/9318
Improves support for arbitrary numbers in data keys. Fixes #9318
Diffstat (limited to 'src')
-rw-r--r--src/core.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.js b/src/core.js
index db988a9b5..7a77ae132 100644
--- a/src/core.js
+++ b/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