Skip to content

Commit

Permalink
Merge pull request #479 from socrates77/plugin-route-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kadamwhite authored Apr 7, 2021
2 parents f4a23a9 + d61d8bf commit 2cfe3ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/named-group-regexp.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const pattern = [
'[>\']',
// Get everything up to the end of the capture group: this is the RegExp used
// when matching URLs to this route, which we can use for validation purposes.
'([^\\)]*)',
'([^\\)]*(\\))?)\\??',
// Capture group end
'\\)',
].join( '' );
Expand Down

1 comment on commit 2cfe3ec

@StefanXhunga
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your asistance!

Please sign in to comment.