Something went wrong. Try again.
Monorepo for Tangled tangled.org
Something went wrong. Try again.
TypeScript
1234567import 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 pageexport const match: ParamMatcher = (param) => parseRawCommit(param) !== null;