Skip to content

Commit e51ec0e

Browse files
Alessandro Maniaskadamwhite
Alessandro Manias
authored andcommitted
Fixed regexp for named route
1 parent f6fe753 commit e51ec0e

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)