feat: change display

This commit is contained in:
2025-10-09 11:25:14 +02:00
parent 6208305464
commit eaef1f5302
6 changed files with 52 additions and 15 deletions

View File

@@ -4,7 +4,7 @@
import * as InputOTP from "$lib/components/ui/input-otp";
import { eventTarget } from "$lib/ws.svelte";
import { toast } from "svelte-sonner";
import { sidebarState } from "$lib/sidebar.svelte.ts";
import { sidebarState } from "$lib/sidebar.svelte";
const slug = $derived(page.params.slug);
@@ -14,8 +14,8 @@
let isInvalid = $state(false);
const TICKET_INPUT_REGEX = "^[A-B]{0,1}[0-9]{0,2}$";
const TICKET_REGEX = /^[A-B]\d{2}$/;
const TICKET_INPUT_REGEX = "^[A-E]{0,1}[0-9]{0,2}$";
const TICKET_REGEX = /^[A-E]\d{2}$/;
async function submit() {
if(!TICKET_REGEX.test(nextTicket)) {