mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
Merge branch 'master' of https://github.com/top-think/framework
This commit is contained in:
@@ -1093,7 +1093,7 @@ class Route
|
|||||||
foreach ($matches[1] as $name) {
|
foreach ($matches[1] as $name) {
|
||||||
if (strpos($name, '?')) {
|
if (strpos($name, '?')) {
|
||||||
$name = substr($name, 0, -1);
|
$name = substr($name, 0, -1);
|
||||||
$replace[] = '((' . (isset($pattern[$name]) ? $pattern[$name] : '') . ')?)';
|
$replace[] = '(' . (isset($pattern[$name]) ? $pattern[$name] : '') . '?)';
|
||||||
} else {
|
} else {
|
||||||
$replace[] = '(' . (isset($pattern[$name]) ? $pattern[$name] : '') . ')';
|
$replace[] = '(' . (isset($pattern[$name]) ? $pattern[$name] : '') . ')';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user