Skip to content

Commit

Permalink
chore: disallow underscores in custom url
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Song <[email protected]>
  • Loading branch information
ferothefox committed Oct 18, 2024
1 parent eb14d82 commit 87a19b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
</div>
<span v-if="!isValidSubdomain" class="text-sm text-rose-400">
Subdomain must be at least 5 characters long and can only contain alphanumeric
characters, dashes, and underscores.
characters and dashes.
</span>
</div>
Expand Down Expand Up @@ -252,7 +252,7 @@ const newAllocationPort = ref(0);
const hasUnsavedChanges = computed(() => serverSubdomain.value !== data?.value?.net?.domain);
const isValidSubdomain = computed(() => /^[a-zA-Z0-9-_]{5,}$/.test(serverSubdomain.value));
const isValidSubdomain = computed(() => /^[a-zA-Z0-9-]{5,}$/.test(serverSubdomain.value));
const addNewAllocation = async () => {
if (!newAllocationName.value) return;
Expand Down

0 comments on commit 87a19b3

Please sign in to comment.