import { type CreateMatcherProps } from "https://deno.land/x/globber@0.1.0/src/create_matcher.ts";
Props for creating the matcher function which takes a pathname and returns true when the value matches and false when it doesn't match.
Properties
When a glob begins with !
and the glob matches the source, the match will
be negated. Set this to true
to disable the behavior.
Set to true to prevent expanding a glob pattern when it ends with /
. An
expanded glob pattern transforms abc/
to abc/**
.
The extensions that can be matched. Setting this to anything other than an empty array / or null will prevent matches on directories. Unless the directory has an extension.
Extended globbing as described by the bash man page as the following.
?(pattern-list) Matches zero or one occurrence of the given patterns
*(pattern-list) Matches zero or more occurrences of the given patterns
+(pattern-list) Matches one or more occurrences of the given patterns