Skip to content
This repository was archived by the owner on Dec 6, 2022. It is now read-only.

Commit 2e37963

Browse files
author
Antoine Pous
committed
Fix broken pattern #101
1 parent dcbfbd6 commit 2e37963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function match($requestUrl, $requestMethod = RequestMethodInterface::METH
114114
}
115115

116116
$route = rtrim($routes->getRegex(), '/');
117-
$pattern = '@^' . preg_quote($this->basePath) . preg_quote($route). '/?$@i';
117+
$pattern = '@^' . preg_quote($this->basePath) . $route . '/?$@i';
118118
if (!preg_match($pattern, $requestUrl, $matches)) {
119119
continue;
120120
}

0 commit comments

Comments
 (0)