UNPKG

@plugjs/plug

Version:
40 lines 1.06 kB
import picomatch from 'picomatch'; /** * Create a {@link Matcher} according to the globs and options specified. * * Remember that no globs here means an always-failing matcher. */ export function match(globs, options = {}) { return picomatch([...globs], { basename: false, bash: false, capture: false, contains: false, debug: false, dot: false, expandRange: undefined, fastpaths: true, flags: undefined, ignore: undefined, keepQuotes: false, literalBrackets: false, nobrace: false, nobracket: false, nocase: false, noextglob: false, noglobstar: false, nonegate: false, noquantifiers: false, onIgnore: undefined, onMatch: undefined, onResult: undefined, posix: false, // prepend: undefined, regex: false, strictBrackets: false, strictSlashes: false, unescape: false, ...options, }); } //# sourceMappingURL=match.js.map