Skip to content

Commit 6a954ee

Browse files
committed
♻️ Reverted missed regex
1 parent 3fb0ee5 commit 6a954ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Routing/RouteCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function compile()
4747
*/
4848
protected function getOptionalParameters()
4949
{
50-
preg_match_all('/{(\w+?)\?}/', $this->route->uri(), $matches);
50+
preg_match_all('/\{(\w+?)\?\}/', $this->route->uri(), $matches);
5151

5252
return isset($matches[1]) ? array_fill_keys($matches[1], null) : [];
5353
}

0 commit comments

Comments
 (0)