Skip to content

Commit

Permalink
chore: updated tms regex pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
jeafreezy committed Nov 4, 2024
1 parent e5cc5d2 commit b654289
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/app/providers/model-creation-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/utils/regex.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export const TMS_URL_REGEX_PATTERN = /^https:\/\/.*\/\{z\}\/\{x\}\/\{y\}.*$/;
export const TMS_URL_REGEX_PATTERN = /^https:\/\/.*\/\{z\}\/\{x\}\/\{y\}.*$/;

0 comments on commit b654289

Please sign in to comment.