mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: 评论区专栏简化链接(cv数字)跳转
This commit is contained in:
@@ -703,6 +703,13 @@ InlineSpan buildContent(
|
|||||||
title,
|
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 {
|
} else {
|
||||||
final String redirectUrl =
|
final String redirectUrl =
|
||||||
await UrlUtils.parseRedirectUrl(matchStr);
|
await UrlUtils.parseRedirectUrl(matchStr);
|
||||||
|
|||||||
Reference in New Issue
Block a user