Skip to content
New issue

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

Incorrect filter for static patterns #93

Closed
mrmlnc opened this issue Apr 9, 2018 · 0 comments
Closed

Incorrect filter for static patterns #93

mrmlnc opened this issue Apr 9, 2018 · 0 comments
Assignees

Comments

@mrmlnc
Copy link
Owner

mrmlnc commented Apr 9, 2018

Source

Actual behavior

const matches = await fg(['../files/foo.json', '../files/bar.json']);
console.log(matches);
// Output: [ ]

Expected behavior

const matches = await fg(['../files/foo.json', '../files/bar.json']);
console.log(matches);
// Output: ['../files/foo.json', '../files/bar.json']

Description

When we work with static patterns, we use the ** pattern. Unfortunately, this does not cover cases with relative paths. We have to work with real patterns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant