This commit is contained in:
Olivier Gagnon
2021-05-07 21:24:16 -04:00
committed by hydroflame
parent 9a9d2e1f81
commit 6dde89f3c4
23 changed files with 76 additions and 262 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ class NumeralFormatter {
return this.format(n, "0,0");
}
parse(s: string): number {
parseMoney(s: string): number {
// numeral library does not handle formats like 1e10 well (returns 110),
// so if both return a valid number, return the biggest one
const numeralValue = numeral(s).value();