We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17bcc0f commit 363f0afCopy full SHA for 363f0af
tools/spectral/ipa/rulesets/functions/utils/resourceEvaluation.js
@@ -190,12 +190,12 @@ function resourceBelongsToSingleParent(resourcePath) {
190
}
191
192
// TODO move prefixes to be rule arguments
193
-function removePrefix(path) {
194
- if (path.startsWith(AUTH_PREFIX)) {
195
- return path.slice(AUTH_PREFIX.length);
196
- }
+export function removePrefix(path) {
197
if (path.startsWith(UNAUTH_PREFIX)) {
198
return path.slice(UNAUTH_PREFIX.length);
199
+ if (path.startsWith(AUTH_PREFIX)) {
+ return path.slice(AUTH_PREFIX.length);
+ }
200
return path;
201
0 commit comments