From e43380e3c5dc763afc2efa208161533b650d4150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C5=82a=C5=BCej=20Kustra?= <46095609+blazejkustra@users.noreply.github.com> Date: Tue, 4 Jun 2024 11:37:04 +0200 Subject: [PATCH] Update lib/str.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michał Skałka <39538890+Skalakid@users.noreply.github.com> --- lib/str.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/str.ts b/lib/str.ts index 7a0cf939..6babee33 100644 --- a/lib/str.ts +++ b/lib/str.ts @@ -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, '');