fix: 诊疗记录异常空格缺失

This commit is contained in:
2026-08-20 21:01:47 +08:00
parent 8adde58a88
commit 3e50d426de
4 changed files with 18 additions and 55 deletions
-26
View File
@@ -52,32 +52,6 @@ namespace AibisDream
Selected
}
public struct DialogText
{
public bool isOption;
public string line;
public CharacterVo actor;
public string lineId;
public static DialogText GetLine(LocalizedLine dialogueLine)
{
return new DialogText
{
isOption = false,
line = dialogueLine.TextWithoutCharacterName.Text,
lineId = dialogueLine.TextID,
actor = dialogueLine.GetCharacterVo()
};
}
public string GetRecordLine()
{
const string allowedTagsPattern = @"(<|{)(?!\/?(b|i|color)(?=>|\s|=))[^(>|})]+(>|})";
var res = Regex.Replace(line, allowedTagsPattern, "");
return res;
}
}
public enum StorageEvent
{
VariableSet,