Skip to content

Commit

Permalink
Stop allowing commas in fixed numbers; left over from legacy comma su…
Browse files Browse the repository at this point in the history
…pport (#2083).
  • Loading branch information
ricmoo committed Oct 4, 2021
1 parent ad87b71 commit 45f3675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bignumber/src.ts/fixednumber.ts
Expand Up @@ -72,7 +72,7 @@ export function parseFixed(value: string, decimals?: BigNumberish): BigNumber {
if (decimals == null) { decimals = 0; }
const multiplier = getMultiplier(decimals);

if (typeof(value) !== "string" || !value.match(/^-?[0-9.,]+$/)) {
if (typeof(value) !== "string" || !value.match(/^-?[0-9.]+$/)) {
logger.throwArgumentError("invalid decimal value", "value", value);
}

Expand Down

0 comments on commit 45f3675

Please sign in to comment.