Add param matcher to ensure random paths dont crash the app
This commit is contained in:
4
src/params/date.ts
Normal file
4
src/params/date.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
export function match(value) {
|
||||||
|
return /^\d{4}-\d{2}-\d{2}$/.test(value)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user