Skip to content

Commit

Permalink
remove extra args
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed May 22, 2024
1 parent 1f157e0 commit 732c2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/MoneyRequestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function validateAmount(amount: string, decimals: number, amountMaxLength: numbe
? `^\\d+(,\\d*)*$` // Don't allow decimal point if decimals === 0
: `^\\d+(,\\d*)*(\\.\\d{0,${decimals}})?$`; // Allow the decimal point and the desired number of digits after the point
const decimalNumberRegex = new RegExp(regexString, 'i');
return amount === '' || (decimalNumberRegex.test(amount) && calculateAmountLength(amount, decimals) <= amountMaxLength);
return amount === '' || (decimalNumberRegex.test(amount) && calculateAmountLength(amount) <= amountMaxLength);
}

/**
Expand Down

0 comments on commit 732c2e2

Please sign in to comment.