diff --git a/src/lib/elements/forms/inputId.svelte b/src/lib/elements/forms/inputId.svelte index ea1dc166b1..6100210b47 100644 --- a/src/lib/elements/forms/inputId.svelte +++ b/src/lib/elements/forms/inputId.svelte @@ -8,7 +8,7 @@ let element: HTMLInputElement; let icon = 'info'; - const pattern = String.raw`^[a-zA-Z0-9][a-zA-Z0-9._-]*$`; + const pattern = String.raw`^[a-zA-Z0-9][a-zA-Z0-9._\-]*$`; onMount(() => { if (element && autofocus) {