mod: 评论跳转cv

This commit is contained in:
guozhigq
2024-10-07 22:39:48 +08:00
parent 2a436cfcfc
commit 16847b8a92

View File

@ -727,14 +727,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(