fix: 诊疗记录异常空格缺失
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user