taler-typescript-core

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

commit c6a557240ee9549a3a48cc9b34c4f08a42cbef3f
parent ddf67367ba9ada539723f536ce763b9c505ea5da
Author: Sebastian <sebasjm@gmail.com>
Date:   Fri, 25 Oct 2024 11:07:30 -0300

fix #9198

Diffstat:
Mpackages/merchant-backoffice-ui/src/components/form/InputPaytoForm.tsx | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/packages/merchant-backoffice-ui/src/components/form/InputPaytoForm.tsx b/packages/merchant-backoffice-ui/src/components/form/InputPaytoForm.tsx @@ -100,14 +100,20 @@ function validateEthereum_path1( } /** - * validates + * validates "[host]:[port]/[path]/" where: + * host: can be localhost, bank.com + * port: any number + * path: may include subpath + * + * for example + * localhost * bank.com/ * bank.com * bank.com/path * bank.com/path/subpath/ */ const DOMAIN_REGEX = - /^[a-zA-Z0-9][a-zA-Z0-9-_]{1,61}[a-zA-Z0-9-_](?:\.[a-zA-Z0-9-_]{2,})+(:[0-9]+)?(\/[a-zA-Z0-9-.]+)*\/?$/; + /^[a-zA-Z0-9][a-zA-Z0-9-_]{1,61}[a-zA-Z0-9-_](?:\.[a-zA-Z0-9-_]{2,})*(:[0-9]+)?(\/[a-zA-Z0-9-.]+)*\/?$/; function validateTalerBank_path1( addr: string,