fast-glob icon indicating copy to clipboard operation
fast-glob copied to clipboard

fastGlob("?/*") fails to match

Open felix9 opened this issue 1 year ago • 1 comments

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 "."

felix9 avatar Feb 18 '23 23:02 felix9