Fixes, continue work

This commit is contained in:
calzoneman 2013-06-11 15:41:03 -04:00
parent 42fc2e45c8
commit 1850f009ff
10 changed files with 286 additions and 159 deletions

View file

@ -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;
}