fix: 评论渲染异常、评论总数

This commit is contained in:
guozhigq
2023-08-25 21:16:16 +08:00
parent aa7419f352
commit 6083578f93
3 changed files with 7 additions and 4 deletions

View File

@ -591,7 +591,8 @@ InlineSpan buildContent(
if (content.jumpUrl.isNotEmpty && hasMatchMember) {
List urlKeys = content.jumpUrl.keys.toList();
matchUrl = matchMember.splitMapJoin(
RegExp("(?:${urlKeys.join("|")})"),
/// RegExp.escape() 转义特殊字符
RegExp(RegExp.escape(urlKeys.join("|"))),
onMatch: (Match match) {
String matchStr = match[0]!;
spanChilds.add(