Skip to content

Commit bcf9ef1

Browse files
authored
fix renaming users with numbers
* fix renaming users with numbers
1 parent beb4a4b commit bcf9ef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/users/UserCard/RenameUser.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
{:else}
4343
<form bind:this={editUserForm} on:submit|preventDefault={renameUserAction}>
4444
<!-- Input has to be lower case, but we will force lower case on submit -->
45-
<input in:slide|global on:click|stopPropagation bind:value={newUserName} class="card-input mb-1 lowercase" required pattern="[a-zA-Z\-\.]+" placeholder="name" />
45+
<input in:slide|global on:click|stopPropagation bind:value={newUserName} class="card-input mb-1 lowercase" required pattern="[a-zA-Z0-9\-\.]+" placeholder="name" />
4646
<!-- edit accept symbol -->
4747
<button in:fade|global on:click|stopPropagation class=""
4848
><svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 inline flex-shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">

0 commit comments

Comments
 (0)