(value: string)
| 457 | typeof value === "object" && value !== null && !Array.isArray(value); |
| 458 | |
| 459 | const maybeUrl = (value: string): URL | null => { |
| 460 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: URL parsing accepts user-pasted spec/base URLs |
| 461 | try { |
| 462 | return new URL(value); |
| 463 | } catch { |
| 464 | return null; |
| 465 | } |
| 466 | }; |
| 467 | |
| 468 | const addProbeCandidate = (candidates: string[], value: string | undefined): void => { |
| 469 | const trimmed = value?.trim(); |
no outgoing calls
no test coverage detected