(value: string)
| 460 | }; |
| 461 | |
| 462 | function isValidUrlPathname(value: string): boolean { |
| 463 | return ( |
| 464 | value.length > 0 && |
| 465 | value.startsWith("/") && |
| 466 | !value.startsWith("//") && |
| 467 | URL_PATHNAME_RE.test(value) |
| 468 | ); |
| 469 | } |
| 470 | |
| 471 | function normalizePublicBasePath(value: string | null | undefined): string | null { |
| 472 | if (!value) { |
no test coverage detected