Skip to content

Commit

Permalink
Update lib/str.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Michał Skałka <[email protected]>
  • Loading branch information
blazejkustra and Skalakid authored Jun 4, 2024
1 parent 5f49669 commit e43380e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/str.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Str = {
* @param allowFraction Flag indicating if fractions of cents should be
* allowed in the output.
*
* @return number The cent value of the @p amountStr.
* @returns The cent value of the @p amountStr.
*/
fromUSDToNumber(amountStr: string, allowFraction: boolean): number {
let amount: string | number = String(amountStr).replace(/[^\d.\-()]+/g, '');
Expand Down

0 comments on commit e43380e

Please sign in to comment.