Skip to content

> based on the discussion in the other thread. Are we going to support this? #15

Description

@teetee4482-rgb

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions