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