(urlPath)
| 409 | } |
| 410 | |
| 411 | function looksLikeAssetRequest(urlPath) { |
| 412 | const last = urlPath.split("/").pop() ?? ""; |
| 413 | return ASSET_LIKE_EXTENSIONS.has(extname(last).toLowerCase()); |
| 414 | } |
| 415 | |
| 416 | function matchesAnyPrefix(urlPath, prefixes) { |
| 417 | return prefixes.some((prefix) => matchesPathPrefix(urlPath, prefix)); |
no outgoing calls
no test coverage detected