mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
165f9e15ee
feat: new user route
8 lines
247 B
TypeScript
8 lines
247 B
TypeScript
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 UUID_REGEX.test(param);
|
|
};
|