MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / parseLine

Function parseLine

ui/src/lib/router.svelte.ts:120–125  ·  view source on GitHub ↗
(params: URLSearchParams)

Source from the content-addressed store, hash-verified

118}
119
120function parseLine(params: URLSearchParams): number | null {
121 const raw = params.get('hl');
122 if (raw === null) return null;
123 const line = Number.parseInt(raw, 10);
124 return Number.isFinite(line) && line > 0 ? line : null;
125}
126
127export function parseHash(hash: string): RouterLocation {
128 const raw = hash.startsWith('#') ? hash.slice(1) : hash;

Callers 1

parseHashFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected