We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bcea23 commit b53f521Copy full SHA for b53f521
internal/vfs/utilities.go
@@ -248,7 +248,7 @@ func getIncludeBasePath(absolute string) string {
248
return tspath.RemoveTrailingDirectorySeparator(tspath.GetDirectoryPath(absolute))
249
}
250
251
- return absolute[:strings.LastIndex(absolute, string(tspath.DirectorySeparator))]
+ return absolute[:max(strings.LastIndex(absolute[:wildcardOffset], string(tspath.DirectorySeparator)), 0)]
252
253
254
// getBasePaths computes the unique non-wildcard base paths amongst the provided include patterns.
0 commit comments