mirror of
https://github.com/immich-app/immich.git
synced 2026-01-28 14:47:33 -05:00
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);
|
|
};
|