Skip to content

Commit de70919

Browse files
author
Stein Janssen
committed
Bugfix: arguments with undescore couldnt be mapped
1 parent ca83a9b commit de70919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RouteFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ private function parseUrl($url)
9292
*/
9393
private function parseArguments($url)
9494
{
95-
preg_match_all('~{(n:|a:|an:|w:|\*:|\?:)?([a-zA-Z0-9]+)}~', $url, $matches);
95+
preg_match_all('~{(n:|a:|an:|w:|\*:|\?:)?([a-zA-Z0-9_]+)}~', $url, $matches);
9696

9797
if (isset($matches[2]) && !empty($matches[2])) {
9898
return $matches[2];

0 commit comments

Comments
 (0)