Update ImageUtilities.plugin.js

This commit is contained in:
Mirco Wittrien 2023-12-21 14:36:42 +01:00
parent 170da9dcd6
commit 2eae92df37
1 changed files with 1 additions and 1 deletions

View File

@ -1700,7 +1700,7 @@ module.exports = (_ => {
}
removeFormatInUrl (url) {
return (url || "").replace(/\&format\=[A-z]+/g, "").replace(/\?format\=[A-z]+\&/g, "?").replace(/\?format\=[A-z]+/g, "");
return (url || "").replace(/format\=[A-z]+(\&){0,1}/g, "");
}
addListener (eventType, type, callback) {