You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When implicitDescendants is true (the default), a pattern with a trailing slash will match a file path, rather than just a directory path as intended. For example, the pattern foo/ will match a file named foo, rather than just a directory named foo. This behavior is inconsistent with other common glob implementations, include .gitignore and node-glob. It also means that there is no way to specify a pattern that matches only files.
Describe the bug
When
implicitDescendants
istrue
(the default), a pattern with a trailing slash will match a file path, rather than just a directory path as intended. For example, the patternfoo/
will match a file namedfoo
, rather than just a directory namedfoo
. This behavior is inconsistent with other common glob implementations, include.gitignore
andnode-glob
. It also means that there is no way to specify a pattern that matches only files.To Reproduce
Run the following TypeScript code:
Expected behavior
No matches are found by the globber.
Actual behavior
Output (when run from
C:\Src\Repro
):Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: