[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: fix 9226
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: fix 9226 |
Date: |
Tue, 22 Oct 2024 17:07:20 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 411b0e10b fix 9226
411b0e10b is described below
commit 411b0e10bd8179adc080d3881ddf19ec8274e5cc
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Tue Oct 22 12:05:35 2024 -0300
fix 9226
---
packages/bank-ui/src/utils.ts | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/packages/bank-ui/src/utils.ts b/packages/bank-ui/src/utils.ts
index 64413b4d6..53c216b99 100644
--- a/packages/bank-ui/src/utils.ts
+++ b/packages/bank-ui/src/utils.ts
@@ -426,14 +426,14 @@ function calculate_iban_checksum(str: string): number {
return result;
}
-const USERNAME_REGEX = /^[A-Za-z][A-Za-z0-9]*$/;
-
+export const USERNAME_REGEX = /^[a-zA-Z0-9\-\.\_\~]*$/;
+// [a-zA-Z0-9\\-\\._~]+
export function validateTalerBank(
account: string,
i18n: InternationalizationAPI,
): TranslatedString | undefined {
if (!USERNAME_REGEX.test(account)) {
- return i18n.str`Account only have letters and numbers`;
+ return i18n.str`Use letters, numbers or any of these characters: - . _ ~`;
}
return undefined;
}
--
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 9226,
gnunet <=