From b654289ba95dc010ed503879e3d4cd3d22acf5aa Mon Sep 17 00:00:00 2001 From: jeafreezy Date: Mon, 4 Nov 2024 10:51:08 +0100 Subject: [PATCH] chore: updated tms regex pattern --- frontend/src/app/providers/model-creation-provider.tsx | 2 +- frontend/src/utils/regex.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/providers/model-creation-provider.tsx b/frontend/src/app/providers/model-creation-provider.tsx index 86caff8a..e182ea4f 100644 --- a/frontend/src/app/providers/model-creation-provider.tsx +++ b/frontend/src/app/providers/model-creation-provider.tsx @@ -53,7 +53,7 @@ export const FORM_VALIDATION_CONFIG = { minLength: 10, }, tmsURL: { - pattern: TMS_URL_REGEX_PATTERN, + pattern: TMS_URL_REGEX_PATTERN.source, }, modelDescription: { maxLength: 500, diff --git a/frontend/src/utils/regex.ts b/frontend/src/utils/regex.ts index 5b78ff2d..64e0e0bd 100644 --- a/frontend/src/utils/regex.ts +++ b/frontend/src/utils/regex.ts @@ -1 +1,2 @@ -export const TMS_URL_REGEX_PATTERN = /^https:\/\/.*\/\{z\}\/\{x\}\/\{y\}.*$/; \ No newline at end of file +export const TMS_URL_REGEX_PATTERN = /^https:\/\/.*\/\{z\}\/\{x\}\/\{y\}.*$/; +