mirror of
https://github.com/Le-niao/Yunzai-Bot.git
synced 2025-01-07 08:36:39 +08:00
Merge pull request #1138 from Rrrrrrray/fixStrategy
fix:攻略4无法下载常驻角色攻略导致报错
This commit is contained in:
commit
0f89314277
@ -157,7 +157,7 @@ export class strategy extends plugin {
|
||||
if (group == 4) {
|
||||
if (val.post.structured_content.includes(name + '】')) {
|
||||
let content = val.post.structured_content.replace(/\\\/\{\}/g, '')
|
||||
let pattern = new RegExp(name + '】.*?image":"(.*?)"')
|
||||
let pattern = new RegExp(name + '】.*?image\\\\?":\\\\?"(.*?)\\\\?"'); // 常驻角色兼容
|
||||
let imgId = pattern.exec(content)[1]
|
||||
for (let image of val.image_list) {
|
||||
if (image.image_id == imgId) {
|
||||
|
Loading…
Reference in New Issue
Block a user