Fix global variable leak

This commit is contained in:
Michael Contento 2015-03-18 08:10:32 +01:00
parent 2c64535522
commit 879b19f2cd
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ module.exports = {
if (typeof value === 'number') {
return true;
} else {
matchResults = value.match(/[-+]?(\d*[.])?\d+/);
var matchResults = value.match(/[-+]?(\d*[.])?\d+/);
if (!! matchResults) {
return matchResults[0] == value;
} else {