mod: 评论跳转cv

This commit is contained in:
guozhigq
2024-10-07 22:39:48 +08:00
parent 7c406e962d
commit e420a71277

View File

@ -703,14 +703,11 @@ InlineSpan buildContent(
'', '',
); );
} else if (RegExp(r'^cv\d+$').hasMatch(matchStr)) { } else if (RegExp(r'^cv\d+$').hasMatch(matchStr)) {
Get.toNamed( Get.toNamed('/read', parameters: {
'/webview', 'title': title,
parameters: { 'id': Utils.matchNum(matchStr).first.toString(),
'url': 'https://www.bilibili.com/read/$matchStr', 'articleType': 'read',
'type': 'url', });
'pageTitle': title
},
);
} else { } else {
Uri uri = Uri.parse(matchStr.replaceAll('/?', '?')); Uri uri = Uri.parse(matchStr.replaceAll('/?', '?'));
SchemeEntity scheme = SchemeEntity( SchemeEntity scheme = SchemeEntity(