From e79cd2df2544605dc190088946fbc6f3c82a1fec Mon Sep 17 00:00:00 2001 From: guozhigq Date: Thu, 4 Jan 2024 22:44:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AF=84=E8=AE=BA=E5=8C=BA=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E8=A7=A3=E6=9E=90=20issues=20#381?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/video/detail/reply/widgets/reply_item.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/pages/video/detail/reply/widgets/reply_item.dart b/lib/pages/video/detail/reply/widgets/reply_item.dart index 73784a61..bbe8116b 100644 --- a/lib/pages/video/detail/reply/widgets/reply_item.dart +++ b/lib/pages/video/detail/reply/widgets/reply_item.dart @@ -681,6 +681,12 @@ InlineSpan buildContent( if (i.contains('?')) { urlKeys[index] = i.replaceAll('?', '\\?'); } + if (i.contains('+')) { + urlKeys[index] = i.replaceAll('+', '\\+'); + } + if (i.contains('*')) { + urlKeys[index] = i.replaceAll('*', '\\*'); + } } matchUrl = matchMember.splitMapJoin( /// RegExp.escape() 转义特殊字符