diff --git a/lib/utils.js b/lib/utils.js index f4b664ea..b7fd35c2 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -364,7 +364,7 @@ const ikeaTradfriManufacturerID = [4476]; * @returns {the sanitized image name} */ function sanitizeImageParameter(parameter) { - const replaceByDash = [/\?/g, /&/g, /[^a-z\d\-_./:]/gi, /[/]/gi]; + const replaceByDash = [/\?/g, /&/g, /[^a-z\d\-_./:()+]/gi, /[/]/gi]; let sanitized = parameter || 'illegalParameter'; replaceByDash.forEach(r => sanitized = sanitized.replace(r, '-')); return sanitized;