refactor: 修改站点配置项输出接口
This commit is contained in:
@@ -91,7 +91,7 @@ class SiteConfig
|
|||||||
$extra = explode(PHP_EOL, $val['extra']);
|
$extra = explode(PHP_EOL, $val['extra']);
|
||||||
$val['extra'] = [];
|
$val['extra'] = [];
|
||||||
foreach ($extra as $v) {
|
foreach ($extra as $v) {
|
||||||
if (preg_match('/^([^:]+):(.*?)(?:\[(.*?)\])?$/i', $v, $match)) {
|
if (preg_match('/^([^:]+):(.*?)(?:\[(.*?)\])?$/i', trim($v), $match)) {
|
||||||
$item = [
|
$item = [
|
||||||
'name' => $match[2],
|
'name' => $match[2],
|
||||||
'value' => $match[1],
|
'value' => $match[1],
|
||||||
|
|||||||
Reference in New Issue
Block a user