Skip to content

Matching specific file is not found when pattern contains parentheses #223

@zrh122

Description

@zrh122

Environment

  • OS Version: Windows 7
  • Node.js Version: v10.16.2

Actual behavior

two results is not same

Expected behavior

two results should be the same

Steps to reproduce

create directory and file, and run the code

Code sample

directory structure:

├── tmp(asd)
    └── a.tmp

from above directory, run script:

const fg = require('fast-glob');
const paths = fg.sync('./tmp\\(asd\\)/a.tmp');
console.log(paths); // []
const paths1 = fg.sync('./tmp\\(asd\\)/*');
console.log(paths1); // ['./tmp(asd)/a.tmp']

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions