This commit is contained in:
辉鸭蛋
2024-10-14 22:30:02 +08:00
parent 229127126b
commit b23cb3bb59
2 changed files with 4 additions and 4 deletions

View File

@@ -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 || [])]