Skip to content

Commit 7051260

Browse files
committed
fixes #1051 - filter using match-paths attribute was broken due to typo
1 parent 554c374 commit 7051260

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/spec-parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ function filterPaths(openApiObject, matchPaths = '', matchType = '', removeEndpo
186186
}
187187
const fullPath = `${httpMethod} ${pathsKey}`.toLowerCase(); // Construct "method path" string
188188
if (matchType === 'regex') {
189-
const regex = new RegExp(matchPaths, 'i');
190-
return regex.test(matchPaths.toLowerCase());
189+
const matchPathsRegex = new RegExp(matchPaths, 'i');
190+
return matchPathsRegex.test(fullPath);
191191
}
192192
return fullPath.includes(matchPaths.toLowerCase());
193193
}

0 commit comments

Comments
 (0)