diff --git a/control/frontend/src/routes/ControlView.svelte b/control/frontend/src/routes/ControlView.svelte index 5262056..34a7340 100644 --- a/control/frontend/src/routes/ControlView.svelte +++ b/control/frontend/src/routes/ControlView.svelte @@ -140,7 +140,7 @@ function validate_website_url(url: string): [boolean, string] { if (url === '') return [true, '']; - const regex = /^https?:\/\/[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/; + const regex = /^https?:\/\/[\w\-]+(\.[\w\-]+)+([\w\-\._~:/?#\[\]@!$&'\(\)\*\+,;=.])*/; if (regex.test(url)) { return [true, '']; } @@ -159,7 +159,7 @@ {#snippet website_popup()}