taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 331dde310b01a63e81aaf6a49da3a9913643e308
parent 9394309efeb0e8db55a3050bd289502872497980
Author: Florian Dold <florian@dold.me>
Date:   Sat, 18 Jul 2026 16:15:39 +0200

fix BBAN validation regex

Diffstat:
Mpackages/taler-util/src/iban.ts | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/taler-util/src/iban.ts b/packages/taler-util/src/iban.ts @@ -132,7 +132,7 @@ export function convertHUF_BBANtoIBAN( if (value.length < 16) { return Result.error(ParseIbanError.TOO_SHORT); } - if (!/[0-9+]/.test(value)) { + if (!/^[0-9]+$/.test(value)) { return Result.error(ParseIbanError.INVALID_CHARSET); } @@ -165,7 +165,7 @@ export function convertCHF_BBANtoIBAN( if (value.length < 16) { return Result.error(ParseIbanError.TOO_SHORT); } - if (!/[0-9+]/.test(value)) { + if (!/^[0-9]+$/.test(value)) { return Result.error(ParseIbanError.INVALID_CHARSET); }