mirror of
https://github.com/immich-app/immich.git
synced 2026-02-09 19:29:27 +03: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);
|
|
};
|