Fixing the problem with data-* based numbers as mention by @jasonwebster in 20673d7.
[jquery.git] / src / data.js
index f2cfc81..931ea83 100644 (file)
@@ -1,7 +1,7 @@
 (function( jQuery ) {
 
 var windowData = {},
-       rnum = /^-?[0-9.]$/;
+       rnum = /^-?[0-9.]+$/;
 
 jQuery.extend({
        cache: {},