Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#### Environment #2

Closed
Xcopz1 opened this issue May 9, 2024 · 0 comments
Closed

#### Environment #2

Xcopz1 opened this issue May 9, 2024 · 0 comments

Comments

@Xcopz1
Copy link

Xcopz1 commented May 9, 2024

Environment

  • Windows 10
  • Node.js 12.13
  • picomatch@master

Code sample

const pm = require('.');

const a = pm.scan('/', { parts: true }).parts;

console.dir(a, { colors: true });

const b = pm.isMatch('/', '/');

console.dir(b, { colors: true });

Expected behaviour

['', '']

I expect to see a representation of the pattern with each of its segments. Without empty parts of the pattern, we will not be able to apply it correctly.

For example, the current pattern must be matched only for / (left side — <empty>, right side — <empty>).

Actual behaviour

[]

Originally posted by @mrmlnc in micromatch/picomatch#58

@Xcopz1 Xcopz1 closed this as completed May 9, 2024
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

No branches or pull requests

1 participant