Skip to content

Matching change from 10.0.1 to 10.0.3 for braces #265

@hildjj

Description

@hildjj

The code:

const {Minimatch} = require('minimatch');
const m = new Minimatch('/\\[\\]\\{\\}/*.js');
const filepath = '/[]{}/app.js';

console.log(m.match(filepath));

prints true on 10.0.1 and false on 10.0.3. I have a couple of other errors in my tests for editorconfig-js (which runs a ton of compat tests for globs), but I'm hoping fixing this will make the rest of them go away without my having to create repros for them. :)

Seems like it's likely related to the brace-expansion change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions