function configMatcher()

in src/utils/patterns.js [28:39]


function configMatcher(path, config) {
  const glob = config.glob || config.source;
  const regex = config.regex;
  if (glob) {
    return minimatch(path, glob);
  }
  if (regex) {
    const pattern = RE2 ? new RE2(regex, "u") : new RegExp(regex, "u");
    return path.match(pattern) !== null;
  }
  return false;
}