Fix implicit glob detection when ancestor directory contains . (#47418)

This commit is contained in:
Andrew Branch authored and GitHub committed 2022-01-13 15:33:38 -08:00
1 parent ce18254c77
commit a158b7ed7d
2 files changed
+10 -1

No files matched your search

+1 -1
View File
@@ -3509,7 +3509,7 @@ namespace ts {
? WatchDirectoryFlags.Recursive : WatchDirectoryFlags.None
};
}
if (isImplicitGlob(spec)) {
if (isImplicitGlob(spec.substring(spec.lastIndexOf(directorySeparator) + 1))) {
return {
key: useCaseSensitiveFileNames ? spec : toFileNameLowerCase(spec),
flags: WatchDirectoryFlags.Recursive