Skip to content

Commit

Permalink
Merge pull request #29 from gurucomputing/24-device-names-cannot-be-u…
Browse files Browse the repository at this point in the history
…pdated-if-0-is-included-in-the-name

fixed associated regex
  • Loading branch information
routerino authored Aug 8, 2022
2 parents 827d719 + ee5cdf3 commit b813df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/devices/DeviceCard/RenameDevice.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
{:else}
<form bind:this={editUserForm} on:submit|preventDefault={renameDeviceAction}>
<!-- Input has to be lower case, but we will force lower case on submit -->
<input in:slide on:click|stopPropagation bind:value={newDeviceName} class="card-input mb-1 lowercase" required pattern="[a-zA-Z1-9\-\.]+" placeholder="name" />
<input in:slide on:click|stopPropagation bind:value={newDeviceName} class="card-input mb-1 lowercase" required pattern="[a-zA-Z0-9\-\.]+" placeholder="name" />
<!-- edit accept symbol -->
<button in:fade on:click|stopPropagation class=""
><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">
Expand Down

0 comments on commit b813df0

Please sign in to comment.