INNER CODE UNIT · TypeScript
matchAdapter
asklokesh/loki-mode · loki-ts/src/engine10/adapters/index.ts:10
export function matchAdapter(ref: string): Adapter | null {
for (const adapter of adapters) {
if (adapter.matches?.(ref)) return adapter;
}
return null;
}
export { githubAdapter, makeGithubAdapter };