Skip to content

Commit

Permalink
fix: 无法正常获取备注
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaa-bbaa committed Jun 10, 2024
1 parent 22649f7 commit 12ceb97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@
let i = queryname.indexOf(title);
let imageElement = page.textContent.match(/\[\[(文件:{{立绘获取}}|缩略图|.*?)\]\]/)[1];
if (imageElement) {
imageElement = imageElement.replace(/\|\d+px/g, "");
imageElement = imageElement.replace(/\|[左中右上下]+/g, "");
imageElement = imageElement.replace(/\|[x\d]+px/g, "");
imageElement = imageElement.replace(/\|[左中右上下方](\|?)/, "$1");
let FileArg = imageElement.split("|");
if (FileArg.length >= 3) {
$($(resultCards[i]).find(".mdui-card-primary-subtitle span")[1]).text(FileArg.pop());
Expand Down

0 comments on commit 12ceb97

Please sign in to comment.