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\}.*$/; +