Skip to content

Commit 0882c28

Browse files
committed
refactor(validate/matchers): renames some internal functions
1 parent b01f7e3 commit 0882c28

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/validate/matchers.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,34 +69,34 @@ export function matchesModulePathNot(pRule, pModule) {
6969
);
7070
}
7171

72-
function _toPath(pRule, pString, pGroups = []) {
72+
function _matchesToPath(pRule, pString, pGroups = []) {
7373
return Boolean(
7474
!pRule.to.path ||
7575
pString.match(replaceGroupPlaceholders(pRule.to.path, pGroups)),
7676
);
7777
}
7878

7979
export function matchesToPath(pRule, pDependency, pGroups) {
80-
return _toPath(pRule, pDependency.resolved, pGroups);
80+
return _matchesToPath(pRule, pDependency.resolved, pGroups);
8181
}
8282

8383
export function matchToModulePath(pRule, pModule, pGroups) {
84-
return _toPath(pRule, pModule.source, pGroups);
84+
return _matchesToPath(pRule, pModule.source, pGroups);
8585
}
8686

87-
function _toPathNot(pRule, pString, pGroups = []) {
87+
function _matchesToPathNot(pRule, pString, pGroups = []) {
8888
return (
8989
!pRule.to.pathNot ||
9090
!pString.match(replaceGroupPlaceholders(pRule.to.pathNot, pGroups))
9191
);
9292
}
9393

9494
export function matchesToPathNot(pRule, pDependency, pGroups) {
95-
return _toPathNot(pRule, pDependency.resolved, pGroups);
95+
return _matchesToPathNot(pRule, pDependency.resolved, pGroups);
9696
}
9797

9898
export function matchToModulePathNot(pRule, pModule, pGroups) {
99-
return _toPathNot(pRule, pModule.source, pGroups);
99+
return _matchesToPathNot(pRule, pModule.source, pGroups);
100100
}
101101

102102
export function matchesToDependencyTypes(pRule, pDependency) {

0 commit comments

Comments
 (0)