From 1ba8770da7d82283fbea37a42ba500ba98450d64 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Thu, 17 Jan 2013 01:40:10 -0800 Subject: [PATCH] Added matched regex property. --- flight/net/Router.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flight/net/Router.php b/flight/net/Router.php index 26f8e84..2d4d454 100644 --- a/flight/net/Router.php +++ b/flight/net/Router.php @@ -35,6 +35,13 @@ class Router { */ public $params = array(); + /** + * Matching regular expression. + * + * @var string + */ + public $regex = null; + /** * Gets mapped routes. * @@ -116,6 +123,7 @@ class Router { } $this->matched = $pattern; + $this->regex = $regex; return true; }