MCPcopy Create free account
hub / github.com/TabularisDB/tabularis / parseExplainFileParam

Function parseExplainFileParam

src/utils/explainImport.ts:19–25  ·  view source on GitHub ↗
(search: string)

Source from the content-addressed store, hash-verified

17 * Returns `null` when missing, empty, or whitespace-only.
18 */
19export function parseExplainFileParam(search: string): string | null {
20 const params = new URLSearchParams(search);
21 const raw = params.get("file");
22 if (!raw) return null;
23 const trimmed = raw.trim();
24 return trimmed.length > 0 ? trimmed : null;
25}
26
27/**
28 * Minimal structural check that catches obvious non-EXPLAIN inputs before we

Callers 2

VisualExplainPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected