diff --git a/src/compiler/core.ts b/src/compiler/core.ts index 07f979333b6..45602616640 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -2021,16 +2021,16 @@ namespace ts { componentPattern += component.replace(reservedCharacterPattern, replaceWildcardCharacter); - // Patterns should not include subfolders like node_modules unless they are + // Patterns should not include subfolders like node_modules unless they are // explicitly included as part of the path. // - // As an optimization, if the component pattern is the same as the component, + // As an optimization, if the component pattern is the same as the component, // then there definitely were no wildcard characters and we do not need to // add the exclusion pattern. if (componentPattern !== component) { subpattern += implicitExcludePathRegexPattern; } - + subpattern += componentPattern; } else { diff --git a/src/harness/unittests/matchFiles.ts b/src/harness/unittests/matchFiles.ts index 71b1bfff11a..9e2a5883754 100644 --- a/src/harness/unittests/matchFiles.ts +++ b/src/harness/unittests/matchFiles.ts @@ -1322,7 +1322,7 @@ namespace ts { }); }); }); - + describe("with files or folders that begin with a .", () => { it("that are not explicitly included", () => { const json = {