(p: string)
| 218 | } |
| 219 | |
| 220 | export function normalizePathPattern(p: string): string { |
| 221 | if (process.platform !== "win32") return p |
| 222 | if (p === "*") return p |
| 223 | const match = p.match(/^(.*)[\\/]\*$/) |
| 224 | if (!match) return normalizePath(p) |
| 225 | const dir = /^[A-Za-z]:$/.test(match[1]) ? match[1] + "\\" : match[1] |
| 226 | return join(normalizePath(dir), "*") |
| 227 | } |
| 228 | |
| 229 | export function resolve(p: string): string { |
| 230 | const resolved = pathResolve(windowsPath(p)) |
nothing calls this directly
no test coverage detected