···11+import type { ParamMatcher } from "@sveltejs/kit";
22+import { parseRawCommit } from "$lib/api/repo";
33+44+// requiring the hash here means refs that are not hashes fall through to the
55+// commit page
66+export const match: ParamMatcher = (param) => parseRawCommit(param) !== null;