1
This commit is contained in:
@@ -15,8 +15,8 @@ function convertNewlines(text) {
|
|||||||
|
|
||||||
function extractInfoFromCombatFile(filePath) {
|
function extractInfoFromCombatFile(filePath) {
|
||||||
const content = fs.readFileSync(filePath, 'utf8');
|
const content = fs.readFileSync(filePath, 'utf8');
|
||||||
const authorMatch = content.match(/\/\/\s*作者:(.*)/);
|
const authorMatch = content.match(/\/\/\s*作者\s*:(.*)/);
|
||||||
const descriptionMatch = content.match(/\/\/\s*描述:(.*)/);
|
const descriptionMatch = content.match(/\/\/\s*描述\s*:(.*)/);
|
||||||
const characterMatches = content.match(/^(?!\/\/).*?(\S+)(?=\s|$)/gm);
|
const characterMatches = content.match(/^(?!\/\/).*?(\S+)(?=\s|$)/gm);
|
||||||
|
|
||||||
const tags = [...new Set(characterMatches || [])]
|
const tags = [...new Set(characterMatches || [])]
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//作者:黎普Lips
|
//作者:黎普Lips
|
||||||
//描述:推荐配队(钟离/夜兰/班尼特/万叶/希诺宁)五选三+仆人,希诺宁入队注意队内需要有至少非岩非风两种元素,否则无减抗无奶
|
//描述:推荐配队(钟离/夜兰/班尼特/万叶/希诺宁)五选三+仆人,希诺宁入队注意队内需要有至少非岩非风两种元素,否则无减抗无奶
|
||||||
|
|
||||||
仆人 e
|
仆人 e
|
||||||
钟离 s(0.1),e(hold)
|
钟离 s(0.1),e(hold)
|
||||||
|
|||||||
Reference in New Issue
Block a user