1
0
Fork 0
This commit is contained in:
Andrew Tomaka 2016-05-26 10:25:22 -04:00
parent 645f9c8f23
commit 719f661556
1 changed files with 2 additions and 0 deletions

View File

@ -353,6 +353,8 @@ function convertToNumber(string) {
return Number(string.replace(/[^0-9\.]+/g, '')) * 1000000000;
} else if(string.indexOf('T') > -1) {
return Number(string.replace(/[^0-9\.]+/g, '')) * 1000000000000;
} else if(string.indexOf('Qa') > -1) {
return Number(string.replace(/[^0-9\.]+/g, '')) * 1000000000000000;
} else {
return Number(string.replace(/[^0-9\.]+/g, ''));
}