Skip to content

Given example of .some not working as expected in v4.0.2 #177

@Mark1626

Description

@Mark1626

Please describe the minimum necessary steps to reproduce this issue:

The example given in README for API some is not working as intended.
Link to example in REPL

const mm = require('micromatch');
// mm.some(list, patterns[, options]);

console.log(mm.some(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
// true
console.log(mm.some(['foo.js'], ['*.js', '!foo.js']));
// should be false returning true

What is happening that shouldn't be?

Second case is matching true incorrectly

What should be happening instead?

Second case should match false

Node - v8.16.0
micromatch: "^4.0.2"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions