Merge pull request #2223 from billti/FixPathNormalization

Fix path normalization for patterns such as './/tsconfig.json'
This commit is contained in:
Bill Ticehurst
2015-03-06 14:43:23 -08:00
9 changed files with 5 additions and 1 deletions

View File

@@ -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);
}
}
}
}