From a7565fe9720d0bd492beb480edadeb12bc7998ce Mon Sep 17 00:00:00 2001 From: orz12 Date: Sun, 7 Jul 2024 15:26:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AF=84=E8=AE=BA=E5=8C=BA=E4=B8=93?= =?UTF-8?q?=E6=A0=8F=E7=AE=80=E5=8C=96=E9=93=BE=E6=8E=A5=EF=BC=88cv?= =?UTF-8?q?=E6=95=B0=E5=AD=97=EF=BC=89=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/video/detail/reply/widgets/reply_item.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/pages/video/detail/reply/widgets/reply_item.dart b/lib/pages/video/detail/reply/widgets/reply_item.dart index 4fe4723a..be16e0d8 100644 --- a/lib/pages/video/detail/reply/widgets/reply_item.dart +++ b/lib/pages/video/detail/reply/widgets/reply_item.dart @@ -703,6 +703,13 @@ InlineSpan buildContent( title, '', ); + } else if (RegExp(r'^[Cc][Vv][0-9]+$').hasMatch(matchStr)) { + Get.toNamed('/htmlRender', parameters: { + 'url': 'https://www.bilibili.com/read/$matchStr', + 'title': title, + 'id': matchStr.substring(2), + 'dynamicType': 'read' + }); } else { final String redirectUrl = await UrlUtils.parseRedirectUrl(matchStr);