(search: string)
| 17 | * Returns `null` when missing, empty, or whitespace-only. |
| 18 | */ |
| 19 | export 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 |
no outgoing calls
no test coverage detected