(urlPath)
| 474 | } |
| 475 | |
| 476 | function looksLikeAssetRequest(urlPath) { |
| 477 | const last = urlPath.split("/").pop() ?? ""; |
| 478 | return ASSET_LIKE_EXTENSIONS.has(extname(last).toLowerCase()); |
| 479 | } |
| 480 | |
| 481 | function matchesAnyPrefix(urlPath, prefixes) { |
| 482 | return prefixes.some((prefix) => matchesPathPrefix(urlPath, prefix)); |
no outgoing calls
no test coverage detected