Tweaked the data number RegExp some to handle some other edge cases.
[jquery.git] / src / data.js
index 931ea83..cc02715 100644 (file)
@@ -1,7 +1,7 @@
 (function( jQuery ) {
 
 var windowData = {},
-       rnum = /^-?[0-9.]+$/;
+       rnum = /^-?\d+(?:\.\d+)$/;
 
 jQuery.extend({
        cache: {},