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
This is because the fast-glob package still does not include the root directory in its output. In the second case, the root directory is considered ., so *rc matches the src directory.
Environment
Actual behavior
fast-glob
matches<pattern>
with a<pattern>/**
pattern only if<pattern>
is a dynamic pattern (assuming you haveonlyFiles: false
in the options)Expected behavior
It behaves the same way regardless of the pattern being dynamic or not
Steps to reproduce
src/index.ts
glob('src/**', { onlyFiles: false });
. See how it returns['src/index.ts']
glob('*rc/**', { onlyFiles: false });
. It returns['src', 'src/index.ts']
Code sample
The text was updated successfully, but these errors were encountered: