commit e9ac87d8a60861d1d9f88fe99fef0e2131aec774
parent dc2361edb3f401731f2099526ed93a6e963ecc45
Author: Florian Dold <florian@dold.me>
Date: Mon, 19 Feb 2024 02:38:07 +0100
-fix regex
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/taler-util/src/amounts.ts b/packages/taler-util/src/amounts.ts
@@ -372,7 +372,7 @@ export class Amounts {
* Check whether a string is a valid currency for a Taler amount.
*/
static isCurrency(s: string): boolean {
- return /^[a-zA-Z]{1,11}/.test(s);
+ return /^[a-zA-Z]{1,11}$/.test(s);
}
/**