src/Framework/router.php
@@ -12,8 +12,9 @@ } public function match (string $path,): array|bool { public function match (string $path): array|bool { $path = urldecode($path); $path = trim($path, "/"); foreach ($this->routes as $route) { @@ -48,6 +49,6 @@ return $segment; }, $segments); return "#^" . implode("/", $segments) . "$#i"; return "#^" . implode("/", $segments) . "$#iu"; } }