1importtype{ParamMatcher}from"@sveltejs/kit";2import{parseRawCommit}from"$lib/api/repo";34// requiring the hash here means refs that are not hashes fall through to the
5// commit page
6exportconstmatch: ParamMatcher=(param)=>parseRawCommit(param)!==null;