We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling the sync method with an array of patterns does not correctly find all of the matching files. Running each pattern separately does.
sync
Note that the files are found correctly when the paths are fully resolved.
Passing an array of patterns should return the same list of files as running each pattern separately.
npm install
cd test1
node index.js
const fg = require('fast-glob') const assert = require('assert') let pattern1 = '**/*.js' let pattern2 = '../test2/**/*.js' // fails assert.deepStrictEqual( fg.sync([pattern1, pattern2]).sort(), [...fg.sync(pattern1), ...fg.sync(pattern2)].sort() )
The text was updated successfully, but these errors were encountered:
Fixed by #320. Will be shipped on this week.
Sorry, something went wrong.
No branches or pull requests
Environment
Actual behavior
Calling the
sync
method with an array of patterns does not correctly find all of the matching files. Running each pattern separately does.Note that the files are found correctly when the paths are fully resolved.
Expected behavior
Passing an array of patterns should return the same list of files as running each pattern separately.
Steps to reproduce
npm install
cd test1
node index.js
Code sample
The text was updated successfully, but these errors were encountered: