diff --git a/build/build.js b/build/build.js index d05cabd7..d246d7e9 100644 --- a/build/build.js +++ b/build/build.js @@ -15,8 +15,8 @@ function convertNewlines(text) { function extractInfoFromCombatFile(filePath) { const content = fs.readFileSync(filePath, 'utf8'); - const authorMatch = content.match(/\/\/\s*作者:(.*)/); - const descriptionMatch = content.match(/\/\/\s*描述:(.*)/); + const authorMatch = content.match(/\/\/\s*作者\s*:(.*)/); + const descriptionMatch = content.match(/\/\/\s*描述\s*:(.*)/); const characterMatches = content.match(/^(?!\/\/).*?(\S+)(?=\s|$)/gm); const tags = [...new Set(characterMatches || [])] diff --git a/repo/combat/仆钟班希.txt b/repo/combat/仆钟班希.txt index 78d3b64a..0d0ea43d 100644 --- a/repo/combat/仆钟班希.txt +++ b/repo/combat/仆钟班希.txt @@ -1,5 +1,5 @@ -//作者:黎普Lips -//描述:推荐配队(钟离/夜兰/班尼特/万叶/希诺宁)五选三+仆人,希诺宁入队注意队内需要有至少非岩非风两种元素,否则无减抗无奶 +//作者:黎普Lips +//描述:推荐配队(钟离/夜兰/班尼特/万叶/希诺宁)五选三+仆人,希诺宁入队注意队内需要有至少非岩非风两种元素,否则无减抗无奶 仆人 e 钟离 s(0.1),e(hold)