We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whenever a value without period is sent and the mantissaLength prop is set to 0, a RangeError is thrown.
Example:
toCurrencyString('2545', mantissaLength: 0)
Expected:
2,545
Instead RangeError is thrown.
This is because line 565 returns -1 since there are no periods in the value, and then line 566 attempts to take a substring from 0 to -1.
The text was updated successfully, but these errors were encountered:
481967a
Thanks. Fixed
Sorry, something went wrong.
No branches or pull requests
Whenever a value without period is sent and the mantissaLength prop is set to 0, a RangeError is thrown.
Example:
toCurrencyString('2545', mantissaLength: 0)
Expected:
2,545
Instead RangeError is thrown.
This is because line 565 returns -1 since there are no periods in the value, and then line 566 attempts to take a substring from 0 to -1.
The text was updated successfully, but these errors were encountered: