aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2011-08-05 10:17:24 -0400
committerRick Waldron <waldron.rick@gmail.com>2011-08-05 10:17:24 -0400
commite7af6a296b75b8583175726039f2946de27549fc (patch)
tree412f598849c72460e1f44b7004783ffeff9f18f4
parent22028e403f6ae68b5985fbe6a849dd670897664f (diff)
downloadjquery-e7af6a296b75b8583175726039f2946de27549fc.tar.gz
jquery-e7af6a296b75b8583175726039f2946de27549fc.zip
Improves support for arbitrary numbers in data keys. Fixes #9318
-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