From 9671ce46b8b63c9f61592f603c8a2be2ac5c7569 Mon Sep 17 00:00:00 2001 From: Pascal Fischer Date: Wed, 26 Jun 2024 12:35:38 +0200 Subject: [PATCH 1/2] update regex to allow one char domains in DNS routing modal --- src/utils/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/helpers.ts b/src/utils/helpers.ts index 3a185086..57c0d3bb 100644 --- a/src/utils/helpers.ts +++ b/src/utils/helpers.ts @@ -42,7 +42,7 @@ export const sleep = (ms: number) => { export const validator = { isValidDomain: (domain: string) => { const unicodeDomain = - /^(?!.*\s)(\.?[a-zA-Z0-9\u00A1-\uFFFF](?!.*\s$)(?!.*\.$)(?:(?!-)[a-zA-Z0-9\u00A1-\uFFFF-]{1,63}(? Date: Wed, 26 Jun 2024 14:27:43 +0200 Subject: [PATCH 2/2] update regex --- src/utils/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/helpers.ts b/src/utils/helpers.ts index 57c0d3bb..fd15ba02 100644 --- a/src/utils/helpers.ts +++ b/src/utils/helpers.ts @@ -42,7 +42,7 @@ export const sleep = (ms: number) => { export const validator = { isValidDomain: (domain: string) => { const unicodeDomain = - /^(?!.*\s)(\.?[a-zA-Z0-9\u00A1-\uFFFF](?!.*\s$)(?!.*\.$)(?:(?!-)[a-zA-Z0-9\u00A1-\uFFFF-]{0,63}(?