From a07c0b1b18833d4e084e53fdababaf6cf768466f Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Thu, 7 Mar 2024 18:50:21 +0800 Subject: [PATCH] fixed weibo m.weibo.cn/status/ unavailable --- gradle.properties | 2 +- src/main/scala/cc/sukazyo/cono/morny/extra/weibo/package.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 863c986..f6d390f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ MORNY_ARCHIVE_NAME = morny-coeur MORNY_CODE_STORE = https://github.com/Eyre-S/Coeur-Morny-Cono MORNY_COMMIT_PATH = https://github.com/Eyre-S/Coeur-Morny-Cono/commit/%s -VERSION = 1.3.2 +VERSION = 1.3.3 USE_DELTA = false VERSION_DELTA = diff --git a/src/main/scala/cc/sukazyo/cono/morny/extra/weibo/package.scala b/src/main/scala/cc/sukazyo/cono/morny/extra/weibo/package.scala index c57e5dc..abf4e30 100644 --- a/src/main/scala/cc/sukazyo/cono/morny/extra/weibo/package.scala +++ b/src/main/scala/cc/sukazyo/cono/morny/extra/weibo/package.scala @@ -23,7 +23,7 @@ package object weibo { // s"https://$cdn.singimg.cn/$mode/$pid.jpg" // } - private val REGEX_WEIBO_STATUS_URL = "(?:https?://)?((?:www\\.|m.)?weibo\\.(?:com|cn))/(\\d+)/([0-9a-zA-Z]+)/?(?:\\?(\\S+))?"r + private val REGEX_WEIBO_STATUS_URL = "(?:https?://)?((?:www\\.|m\\.)?weibo\\.(?:com|cn))/(?:(\\d+)|status)/([0-9a-zA-Z]+)/?(?:\\?(\\S+))?"r def parseWeiboStatusUrl (url: String): Option[StatusUrlInfo] = url match