diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-10 14:46:47 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-10 14:46:47 -0800 |
commit | 27a31b4e4661e8ca95e4c3e28743a1d8abd64d0b (patch) | |
tree | 54e77afd4200199a2ba00a187afdda0d81e347bb /src/utility.js | |
parent | 008d2433826b0ac7d4bdd5556bd4c6b4f1351c73 (diff) |
cleanup and fixes for i64
Diffstat (limited to 'src/utility.js')
-rw-r--r-- | src/utility.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utility.js b/src/utility.js index 5ae4480f..df9407c0 100644 --- a/src/utility.js +++ b/src/utility.js @@ -185,7 +185,7 @@ function mergeInto(obj, other) { } function isNumber(x) { - return x == parseFloat(x) || (typeof x == 'string' && x.match(/^-?\d+/)); + return x == parseFloat(x) || (typeof x == 'string' && x.match(/^-?\d+$/)); } function isArray(x) { |