(value: string)
| 424 | typeof value === "object" && value !== null && !Array.isArray(value); |
| 425 | |
| 426 | const maybeUrl = (value: string): URL | null => { |
| 427 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: URL parsing accepts user-pasted spec/base URLs |
| 428 | try { |
| 429 | return new URL(value); |
| 430 | } catch { |
| 431 | return null; |
| 432 | } |
| 433 | }; |
| 434 | |
| 435 | const addProbeCandidate = (candidates: string[], value: string | undefined): void => { |
| 436 | const trimmed = value?.trim(); |
no outgoing calls
no test coverage detected