update deserialize regex to work with decimals
This commit is contained in:
parent
9f99ac8b84
commit
adc326139a
|
@ -1230,7 +1230,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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user