Skip to content

Commit c54a999

Browse files
committed
fix
1 parent 50c82fd commit c54a999

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,9 @@
554554
}
555555
if(/\.sinaimg\.cn\/mw\d+\//.test(oldsrc)){
556556
newsrc=oldsrc.replace(/\/mw\d+\//,"/large/");
557-
}else if(/gravatar\.com\/avatar\/.*\?s=/.test(oldsrc)){
558-
newsrc=oldsrc.replace(/(gravatar\.com\/avatar\/.*\?s=).*/,"$1100000");
557+
}else if(/gravatar\.com\/avatar\/.*[\?&]s=/.test(oldsrc)){
558+
console.log(111);
559+
newsrc=oldsrc.replace(/(gravatar\.com\/avatar\/.*[\?&]s=).*/,"$1100000");
559560
}
560561
return oldsrc != newsrc ? newsrc : null;
561562
}

0 commit comments

Comments
 (0)