Skip to content

Commit 45f3675

Browse files
committed
Stop allowing commas in fixed numbers; left over from legacy comma support (ethers-io#2083).
1 parent ad87b71 commit 45f3675

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/bignumber/src.ts/fixednumber.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function parseFixed(value: string, decimals?: BigNumberish): BigNumber {
7272
if (decimals == null) { decimals = 0; }
7373
const multiplier = getMultiplier(decimals);
7474

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

0 commit comments

Comments
 (0)