Commit b7e79fab authored by mercury233's avatar mercury233

update desc handling

parent c8eaf52d
......@@ -79,8 +79,9 @@ namespace ImgGen
}
string desc = new string(chArray);
desc = desc.Replace(Environment.NewLine, "\n");
desc = Regex.Replace(desc, @"((注:.*[\n\s]+)", ""); // 去掉注释
desc = Regex.Replace(desc, @"(?<=。)([\n\s]+)(?=[①②③④⑤⑥⑦⑧⑨⑩])", ""); // 去掉效果编号前的换行
desc = Regex.Replace(desc, @"([\n\s]+)(?=●)", ""); // 去掉●号前的换行
desc = Regex.Replace(desc, @"([\n\s]+)(?=●)(?=.+。)", ""); // 去掉●号前的换行
return desc;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment