based on the discussion in the other thread. Are we going to support this?
Hey @phated, I just responded here. I think this is something that would need to be solved in del or fast-glob, please let me know if I misunderstood.
EDIT: @dlong500 I forgot to mention, I don't think you are, but if you do use picomatch directly, instead of using the is-glob library, picomatch has a scan method that returns an object with an isGlob boolean (as well as the glob parent (aka base) and some other useful properties):
const result = picomatch.scan('!./foo/*.js');
console.log(result);
{ prefix: '!./',
input: '!./foo/*.js',
start: 3,
base: 'foo',
glob: '*.js',
isBrace: false,
isBracket: false,
isGlob: true,
isExtglob: false,
isGlobstar: false,
negated: true }
Originally posted by @jonschlinkert in micromatch/is-glob#12 (comment)
Hey @phated, I just responded here. I think this is something that would need to be solved in
delorfast-glob, please let me know if I misunderstood.EDIT: @dlong500 I forgot to mention, I don't think you are, but if you do use
picomatchdirectly, instead of using theis-globlibrary, picomatch has a scan method that returns an object with anisGlobboolean (as well as the glob parent (akabase) and some other useful properties):Originally posted by @jonschlinkert in micromatch/is-glob#12 (comment)