Add param matcher to ensure random paths dont crash the app

This commit is contained in:
2026-02-17 11:34:23 +13:00
parent 0b038f4dea
commit 2a953ef5ce
3 changed files with 4 additions and 0 deletions

4
src/params/date.ts Normal file
View File

@@ -0,0 +1,4 @@
export function match(value) {
return /^\d{4}-\d{2}-\d{2}$/.test(value)
}