support negative values in query config overrides

edit
Hakim El Hattab 2017-09-07 10:33:44 +02:00
parent bfd431a0c4
commit 56504b50a9
1 changed files with 1 additions and 1 deletions

View File

@ -1292,7 +1292,7 @@
if( value === 'null' ) return null;
else if( value === 'true' ) return true;
else if( value === 'false' ) return false;
else if( value.match( /^[\d\.]+$/ ) ) return parseFloat( value );
else if( value.match( /^-?[\d\.]+$/ ) ) return parseFloat( value );
}
return value;