Skip to content

Ignore pattern not working proprerly #329

@Njaah-0

Description

@Njaah-0

Environment

  • OS Version: MacOS Big Sur 11.4
  • Node.js Version: q2.22
  • Fast-glob: 3.2.7

Actual behavior

Applying pattern that has ! doesn't seem to ignore correctly. When same, reversed pattern is used in ignore option, it works properly
Screenshot 2021-07-28 at 12 15 14

Expected behavior

Screenshot 2021-07-28 at 12 15 06

Steps to reproduce

  1. See the image.

Code sample

const fg = require('fast-glob');

const entries = fg.sync(['./insertyourtestfolderhere/!(*.d).{ts,tsx}'], {
  dot: true,
  // ignore: ['./insertyourtestfolderhere/(*.d).{ts,tsx}'],
});

console.log(entries);

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions