Skip to content

Commit

Permalink
use includes to fix the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
xploitedd committed Jan 23, 2021
1 parent 5af5056 commit 8aed947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/expressSitemapHtml.js
Expand Up @@ -103,7 +103,7 @@ function swaggerRoutes(app) {
*/
function parseAndAddRouteParameters(endpoints) {
endpoints
.filter(r => r.path != '*')
.filter(r => !r.path.includes('*'))
.forEach(route => {
const keys = []
pathToRegexp(route.path, keys)
Expand Down

0 comments on commit 8aed947

Please sign in to comment.