@@ -69,34 +69,34 @@ export function matchesModulePathNot(pRule, pModule) {
69
69
) ;
70
70
}
71
71
72
- function _toPath ( pRule , pString , pGroups = [ ] ) {
72
+ function _matchesToPath ( pRule , pString , pGroups = [ ] ) {
73
73
return Boolean (
74
74
! pRule . to . path ||
75
75
pString . match ( replaceGroupPlaceholders ( pRule . to . path , pGroups ) ) ,
76
76
) ;
77
77
}
78
78
79
79
export function matchesToPath ( pRule , pDependency , pGroups ) {
80
- return _toPath ( pRule , pDependency . resolved , pGroups ) ;
80
+ return _matchesToPath ( pRule , pDependency . resolved , pGroups ) ;
81
81
}
82
82
83
83
export function matchToModulePath ( pRule , pModule , pGroups ) {
84
- return _toPath ( pRule , pModule . source , pGroups ) ;
84
+ return _matchesToPath ( pRule , pModule . source , pGroups ) ;
85
85
}
86
86
87
- function _toPathNot ( pRule , pString , pGroups = [ ] ) {
87
+ function _matchesToPathNot ( pRule , pString , pGroups = [ ] ) {
88
88
return (
89
89
! pRule . to . pathNot ||
90
90
! pString . match ( replaceGroupPlaceholders ( pRule . to . pathNot , pGroups ) )
91
91
) ;
92
92
}
93
93
94
94
export function matchesToPathNot ( pRule , pDependency , pGroups ) {
95
- return _toPathNot ( pRule , pDependency . resolved , pGroups ) ;
95
+ return _matchesToPathNot ( pRule , pDependency . resolved , pGroups ) ;
96
96
}
97
97
98
98
export function matchToModulePathNot ( pRule , pModule , pGroups ) {
99
- return _toPathNot ( pRule , pModule . source , pGroups ) ;
99
+ return _matchesToPathNot ( pRule , pModule . source , pGroups ) ;
100
100
}
101
101
102
102
export function matchesToDependencyTypes ( pRule , pDependency ) {
0 commit comments