mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-13 16:34:39 -06:00
Fix path normalization for patterns such as './/tsconfig.json'
This commit is contained in:
parent
b784a4212a
commit
ee912ee1cd
@ -430,7 +430,11 @@ module ts {
|
||||
normalized.pop();
|
||||
}
|
||||
else {
|
||||
normalized.push(part);
|
||||
// A part may be an empty string (which is 'falsy') if the path had consecutive slashes,
|
||||
// e.g. "path//file.ts". Drop these before re-joining the parts.
|
||||
if(part) {
|
||||
normalized.push(part);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user