mirror of
http://124.126.16.154:8888/singularity/hdk-skeleton.git
synced 2026-01-15 06:15:08 +08:00
fix(installer): 修复了描述覆盖项目名的问题
This commit is contained in:
@@ -189,7 +189,7 @@ class OptionalPackages
|
||||
null,
|
||||
''
|
||||
);
|
||||
$this->projectName = $this->io->askAndValidate(
|
||||
$this->description = $this->io->askAndValidate(
|
||||
"\n <question>一句话描述下这个项目吧</question>(默认:{$this->description})\n ",
|
||||
function ($value) {
|
||||
return trim($value);
|
||||
@@ -559,7 +559,7 @@ ERROR;
|
||||
return preg_quote($word, '/');
|
||||
}, $entries)
|
||||
);
|
||||
return preg_replace('/^.*(?:' . $entries . ").*$(?:\r?\n)?/m", '', $content);
|
||||
return preg_replace('/^.*%na' . $entries . "me.*$(?:\r?\n)?/m", '', $content);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user