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

micromatch.not returns nothing if empty pattern list provided #241

Open
ishmam-mahmud opened this issue Nov 12, 2023 · 0 comments
Open

micromatch.not returns nothing if empty pattern list provided #241

ishmam-mahmud opened this issue Nov 12, 2023 · 0 comments

Comments

@ishmam-mahmud
Copy link

(Thanks for reporting an issue to micromatch! If you haven't already read the contributor guidelines, Please do that now, then proceed to fill out the details below.)

Please describe the minimum necessary steps to reproduce this issue:

micromatch.not(["a", "b", "c"], [], {bash: true, dot: true})

I have included the micromatch options I need for my use case. Not sure if the behaviour changes if you use different options

What is happening that shouldn't be?

The example code returns an empty array, suggesting that all 3 of "a", "b", "c" are matching some pattern somewhere.

What should be happening instead?

The return should be ["a", "b", "c"] as none of them match any of the patterns given.

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

No branches or pull requests

1 participant