isaacs / minimatch

a glob matcher in javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error when a folder name starts with `.`

zxch3n opened this issue · comments

const path = "v/examples/.pnpm/js";
const rule = "**/examples/**";
expect(minimatch(path, rule)).toBeTruthy(); // return false 
const path = "v/examples/pnpm/js";
const rule = "**/examples/**";
expect(minimatch(path, rule)).toBeTruthy(); // return true

Pass {dot:true} to have ** and * match path portions starting with ..

Thanks. It makes sense. I found it out on the doc after creating this issue