[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: -fix regex
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: -fix regex |
Date: |
Mon, 19 Feb 2024 02:38:08 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new e9ac87d8a -fix regex
e9ac87d8a is described below
commit e9ac87d8a60861d1d9f88fe99fef0e2131aec774
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Feb 19 02:38:07 2024 +0100
-fix regex
---
packages/taler-util/src/amounts.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/taler-util/src/amounts.ts
b/packages/taler-util/src/amounts.ts
index 16774f376..02da6ebe5 100644
--- 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);
}
/**
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: -fix regex,
gnunet <=