(path)
| 14 | |
| 15 | export default function resolve (basePath, nameOrDot) { |
| 16 | const hasWinDrive = (path) => /^[a-zA-Z]:/.test(path) |
| 17 | const isWin = basePath.includes('\\') || nameOrDot.includes('\\') || hasWinDrive(basePath) || hasWinDrive(nameOrDot) |
| 18 | const sep = isWin ? '\\' : '/' |
| 19 | if (/^[a-zA-Z]:/.test(nameOrDot)) { |