Tweaked the data number RegExp some to handle some other edge cases.

This commit is contained in:
John Resig 2010-09-21 00:38:26 -04:00
parent 4a46f3d7fb
commit d5d4e4df65
2 changed files with 6 additions and 2 deletions

View file

@ -1,7 +1,7 @@
(function( jQuery ) {
var windowData = {},
rnum = /^-?[0-9.]+$/;
rnum = /^-?\d+(?:\.\d+)$/;
jQuery.extend({
cache: {},