src/mako/http/routing/URLBuilder.php
public function matches(string $pattern): bool
	{
		return (bool) preg_match('#' . $pattern . '#', $this->request->getPath());
	}
public function matches(string $pattern): bool
	{
		return (bool) preg_match('#' . $pattern . '#', $this->request->getPath());
	}
public function matches ( string $ pattern ) : bool { return ( bool ) preg_match ( '#' . $ pattern . '#' , $ this -> request -> getPath ( ) ) ; }
Returns TRUE if the pattern matches the current route and FALSE if not.

@param  string $pattern Pattern to match
@return bool
Returns TRUE if the pattern matches the current route and FALSE if not .