Fix global variable leak
This commit is contained in:
parent
2c64535522
commit
879b19f2cd
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue