Skip to content

Commit 2cfe3ec

Browse files
authored
Merge pull request #479 from socrates77/plugin-route-fix
2 parents f4a23a9 + d61d8bf commit 2cfe3ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/named-group-regexp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const pattern = [
1414
'[>\']',
1515
// Get everything up to the end of the capture group: this is the RegExp used
1616
// when matching URLs to this route, which we can use for validation purposes.
17-
'([^\\)]*)',
17+
'([^\\)]*(\\))?)\\??',
1818
// Capture group end
1919
'\\)',
2020
].join( '' );

0 commit comments

Comments
 (0)