feat: 评论区专栏简化链接(cv数字)跳转

This commit is contained in:
orz12
2024-07-07 15:26:25 +08:00
parent 17684a29d2
commit a7565fe972

View File

@@ -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);