is-glob
is-glob copied to clipboard
If you use globs, this will make your code faster. Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules...
I've noticed that `isGlob()` returns `false` when called with simple patterns with only question mark in them. Is this intended? ```javascript isGlob('*'); // true isGlob('?'); // false isGlob('audio/?.m4a'); // false...
I'm opening this PR just to start the discussion (per @phated request from https://github.com/gulpjs/glob-parent/issues/39). There are lots of broken tests as this PR currently stands after adding the question mark...
This seems wrong to me? In particular, it's causing `fastGlob("?/*")` to fail. ```sh mkdir a touch a/test node -p 'require("fast-glob").sync("?/test")' # prints [] node -p 'require("fast-glob").sync("{?,?}/test")' # prints [ 'a/test'...