diff --git a/src/Route.php b/src/Route.php index e17b564..70f46da 100644 --- a/src/Route.php +++ b/src/Route.php @@ -113,7 +113,7 @@ public function getPath(?array $replacements = null): string $toReplace = []; foreach ($replacements as $wildcard => $actual) { - $toReplace['/{' . preg_quote($wildcard, '/') . '(:.*)?}/'] = $actual; + $toReplace['/{' . preg_quote($wildcard, '/') . '(:.*)?}/U'] = $actual; } $segments = [];