Skip to content

Conversation

HackAttack
Copy link

This is the documented behavior of micromatch.

Fixes #89

This is the documented behavior of micromatch.
it('should work with negation patterns', () => {
assert(isMatch('./x/y.js', '*.js', { matchBase: true }));
assert(!isMatch('./x/y.js', '!*.js', { matchBase: true }));
assert(isMatch('./x/y.js', '**/*.js', { matchBase: true }));
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not preserving the ./ is intentional—this is not a match according to minimatch.

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

Successfully merging this pull request may close these issues.

Implementation of basename and matchBase options to not match documentation
1 participant