fixed bug in route parameterizer.

This commit is contained in:
Taylor Otwell 2011-06-17 00:16:55 -05:00
parent 3408bb8492
commit bc8fa3570e
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public static function to_route($name, $parameters = array(), $https = false)
// ----------------------------------------------------
foreach ($parameters as $parameter)
{
$uri = preg_replace('/\(.+\)/', $parameter, $uri, 1);
$uri = preg_replace('/\(.+?\)/', $parameter, $uri, 1);
}
return static::to($uri, $https);