We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 790a1dc commit e67f3fcCopy full SHA for e67f3fc
src/WaterPipe/HTTP/Request/RequestUri.php
@@ -193,7 +193,12 @@ public function isBuilt(): bool
193
public static function isMatch(string $pattern, string $uri): bool
194
{
195
$pattern = self::pattern2regex($pattern);
196
- return preg_match("#^{$pattern}\$#", "/" . trim($uri, "/")) != false;
+ return (
197
+ preg_match("#^{$pattern}\$#", "/" . trim($uri, "/") . "/") ||
198
+ preg_match("#^{$pattern}\$#", "/" . trim($uri, "/")) ||
199
+ preg_match("#^{$pattern}\$#", trim($uri, "/")) ||
200
+ preg_match("#^{$pattern}\$#", $uri)
201
+ ) != false;
202
}
203
204
private static function _getUriParams(string $pattern): array
0 commit comments