Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/generate-doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function processComplexMatch (thing, keys) {
// (i.e. /:id, /:name, etc...) with the name(s) of those parameter(s)
// This could have been accomplished with replaceAll for Node version 15 and above
// no-useless-escape is disabled since we need three backslashes
.replace(/\(\?\:\(\[\^\\\/\]\+\?\)\)/g, () => `{${keys[i++].name}}`) // eslint-disable-line no-useless-escape
.replace(/(?:\\\/)?\(\?\:(?:\\\/)?\(\[\^(?:\\)?\/\]\+\?\)\)\\\//g, () => `/{${keys[i++].name}}/`) // eslint-disable-line no-useless-escape
.replace(/\\(.)/g, '$1')
// The replace below removes the regex used at the start of the string and
// the regex used to match the query parameters
Expand Down