mrmlnc / fast-glob

:rocket: It's a very fast and efficient glob library for Node.js
MIT License
2.52k stars 108 forks source link

fastGlob("?/*") fails to match #380

Open felix9 opened 1 year ago

felix9 commented 1 year ago
mkdir a
touch a/test
node -p 'require("fast-glob").sync("?/test")'
# prints []
node -p 'require("fast-glob").sync("{?,?}/test")'
# prints [ 'a/test' ]

This seems to be caused by a bug in is-glob https://github.com/micromatch/is-glob/issues/21 which makes globParent("?/test") return "?" instead of "."

mrmlnc commented 1 year ago

https://github.com/gulpjs/glob-parent/issues/60 https://github.com/gulpjs/glob-parent/issues/39