src/graph-utl/match-facade.mjs
export function filenameMatchesPattern(pFullPathToFile, pPattern) {
return RegExp(pPattern, "g").test(pFullPathToFile);
}
export function moduleMatchesFilter(pModule, pFilter) {
return filenameMatchesPattern(pModule.source, pFilter.path);
}
export function dependencyMatchesFilter(pDependency, pFilter) {
return filenameMatchesPattern(pDependency.resolved, pFilter.path);
}