Fix inputid regex

This commit is contained in:
ernstmul committed 2024-10-28 17:42:19 +01:00
1 parent 520df0a5e5
commit ffd09ff89f
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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) {
@@ -33,6 +33,7 @@
<CustomId
bind:show={showCustomId}
name="Project"
isProject={true}
bind:id={$createProject.id}
fullWidth />
{/if}