mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: 投票类回复移除冗余编号显示
This commit is contained in:
@@ -532,7 +532,7 @@ InlineSpan buildContent(
|
||||
|
||||
// 投票
|
||||
if (content.vote.isNotEmpty) {
|
||||
content.message.splitMapJoin(RegExp(r"\{vote:.*?\}"),
|
||||
content.message.splitMapJoin(RegExp(r"\{vote:\d+?\}"),
|
||||
onMatch: (Match match) {
|
||||
// String matchStr = match[0]!;
|
||||
spanChildren.add(
|
||||
@@ -556,8 +556,8 @@ InlineSpan buildContent(
|
||||
}, onNonMatch: (String str) {
|
||||
return str;
|
||||
});
|
||||
content.message = content.message.replaceAll(RegExp(r"\{vote:\d+?\}"), "");
|
||||
}
|
||||
// content.message = content.message.replaceAll(RegExp(r"\{vote:.*?\}"), ' ');
|
||||
content.message = content.message
|
||||
.replaceAll('&', '&')
|
||||
.replaceAll('<', '<')
|
||||
|
||||
Reference in New Issue
Block a user