从url正则中去除用字 (#160)

从url正则中去除用字,以防止url中包含用字前缀导致图片显示失败
This commit is contained in:
GenesisAN 2022-03-20 14:43:55 +08:00 committed by GitHub
parent 6e2b10b788
commit 5cd46b3926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,7 +294,7 @@ func init() { // 插件主体
var url, alert string var url, alert string
switch len(dateStrs) { switch len(dateStrs) {
case 4: case 4:
url = dateStrs[2] url = strings.TrimPrefix(dateStrs[2], "用")
alert = dateStrs[3] alert = dateStrs[3]
case 3: case 3:
alert = dateStrs[2] alert = dateStrs[2]