diff options
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) { |