Skip to content

Commit bbb42f4

Browse files
authoredOct 21, 2022
Fix typo in canWatchDirectoryOrFile found by CodeQL (#51262)
1 parent a56b254 commit bbb42f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/compiler/resolutionCache.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ namespace ts {
127127
const isNonDirectorySeparatorRoot = rootLength > 1 || dirPath.charCodeAt(0) !== CharacterCodes.slash;
128128
if (isNonDirectorySeparatorRoot &&
129129
dirPath.search(/[a-zA-Z]:/) !== 0 && // Non dos style paths
130-
pathPartForUserCheck.search(/[a-zA-z]\$\//) === 0) { // Dos style nextPart
130+
pathPartForUserCheck.search(/[a-zA-Z]\$\//) === 0) { // Dos style nextPart
131131
nextDirectorySeparator = dirPath.indexOf(directorySeparator, nextDirectorySeparator + 1);
132132
if (nextDirectorySeparator === -1) {
133133
// ignore "//vda1cs4850/c$/folderAtRoot"

0 commit comments

Comments
 (0)
Please sign in to comment.