Since there arent any user given extensions, have extensions start with "." like before

This commit is contained in:
Sheetal Nandi
2015-10-28 16:24:53 -07:00
parent 45b995d030
commit 2d3a345fd3
16 changed files with 36 additions and 36 deletions

View File

@@ -515,7 +515,7 @@ namespace ts {
if (!hasConflictingExtension) {
// Add the file only if there is no higher priority extension file already included
// eg. when a.d.ts and a.js are present in the folder, include only a.d.ts not a.js
const baseName = fileName.substr(0, fileName.length - currentExtension.length - 1);
const baseName = fileName.substr(0, fileName.length - currentExtension.length);
if (!hasProperty(filesSeen, baseName)) {
filesSeen[baseName] = true;
fileNames.push(fileName);