(pathname: string, pattern: string)
| 65 | /** A path pattern is an exact path, or `/x/*`, which matches every path |
| 66 | * that starts with `/x/` (and not `/x` itself). */ |
| 67 | const matchesPathPattern = (pathname: string, pattern: string): boolean => |
| 68 | pattern.endsWith("/*") ? pathname.startsWith(pattern.slice(0, -1)) : pathname === pattern; |
| 69 | |
| 70 | /** Path patterns v2 answers on `executor.sh`. `/git/*` never matches |
| 71 | * `/gitlab/...`. v2's outbound OAuth client metadata document stays off this |
no outgoing calls
no test coverage detected