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

nocase: true issue #194

Closed
mbelsky opened this issue Dec 15, 2019 · 1 comment
Closed

nocase: true issue #194

mbelsky opened this issue Dec 15, 2019 · 1 comment

Comments

@mbelsky
Copy link

mbelsky commented Dec 15, 2019

Hey,

I'm working on jestjs/jest#8900 and faced an interesting issue with { nocase: true }:

const mm = require("micromatch")

// Works well
console.log('Works well: ', mm(['foo', 'bar'], ['foo', 'BAR'], { nocase: true }))

// But something wrong here
console.log('Minimal repro: ', mm(['C:\\'], 'c:\\', { nocase: true }))

// Expected: ["C:\\"]
// Received: []

You may try it here: https://runkit.com/mbelsky/micromatch-micromatch-issues-194/0.1.0

@mbelsky
Copy link
Author

mbelsky commented Jan 4, 2020

I reread docs and got answer. Thanks

@mbelsky mbelsky closed this as completed Jan 4, 2020
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