src/Router/Route.php
public function matchUri(string $uri): bool
    {
        $pattern = implode("\/", $this->patternParts);
        return preg_match("/^{$pattern}$/i", $this->stripLeadingAndTrailingSlash($uri)) != false;
    }
public function matchUri(string $uri): bool
    {
        $pattern = implode("\/", $this->patternParts);
        return preg_match("/^{$pattern}$/i", $this->stripLeadingAndTrailingSlash($uri)) != false;
    }
Does the given URI match the route's URI?

@param string $uri
@return bool