feat: modal routes (#24726)

feat: new user route
This commit is contained in:
Jason Rasmussen
2025-12-22 10:04:08 -05:00
committed by GitHub
parent dfdbb773ce
commit 165f9e15ee
30 changed files with 672 additions and 570 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import { UUID_REGEX } from '$lib/constants';
import type { ParamMatcher } from '@sveltejs/kit';
/* Returns true if the given param matches UUID format */
export const match: ParamMatcher = (param: string) => {
return /^[\dA-Fa-f]{8}(?:\b-[\dA-Fa-f]{4}){3}\b-[\dA-Fa-f]{12}$/.test(param);
return UUID_REGEX.test(param);
};