Allow two case-number formats: NNNN-YY and NNNN-MM-YY

Narrow the regex to exactly the two hyphen-separated shapes Dafna
uses in practice (1033-25, 1000-04-26). Wider shapes like "1033-foo"
are rejected too — they didn't exist in any real case and would
quietly widen the surface area for routing bugs later.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-11 16:44:25 +00:00
parent d8a537e7aa
commit e483eba1a9
2 changed files with 10 additions and 7 deletions

View File

@@ -123,7 +123,7 @@ export function CaseWizard() {
</Label>
<Input
id="case_number"
placeholder="1234 או 8001/2026"
placeholder="1033-25 או 1000-04-26"
{...form.register("case_number")}
className="mt-1 tabular-nums"
/>