Skip to content

Commit 9fdcc26

Browse files
author
Alessandro Manias
committed
Fixed regexp for named route
1 parent f4a23a9 commit 9fdcc26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/named-group-regexp.js

Lines changed: 1 addition & 1 deletion
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)