Fixes, continue work
This commit is contained in:
parent
42fc2e45c8
commit
1850f009ff
10 changed files with 286 additions and 159 deletions
|
|
@ -51,9 +51,9 @@ function getOrDefault(k, def) {
|
|||
return true;
|
||||
if(v === "false")
|
||||
return false;
|
||||
if(v.match(/[0-9]+/))
|
||||
if(v.match(/^[0-9]+$/))
|
||||
return parseInt(v);
|
||||
if(v.match(/[0-9\.]+/))
|
||||
if(v.match(/^[0-9\.]+$/))
|
||||
return parseFloat(v);
|
||||
return v;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue