Added matched regex property.

pull/25/head
Mike Cao 12 years ago
parent ae32c228d1
commit 1ba8770da7

@ -35,6 +35,13 @@ class Router {
*/ */
public $params = array(); public $params = array();
/**
* Matching regular expression.
*
* @var string
*/
public $regex = null;
/** /**
* Gets mapped routes. * Gets mapped routes.
* *
@ -116,6 +123,7 @@ class Router {
} }
$this->matched = $pattern; $this->matched = $pattern;
$this->regex = $regex;
return true; return true;
} }

Loading…
Cancel
Save