diff --git a/dev/Stores/User/Message.js b/dev/Stores/User/Message.js index 1d5be8264..a3e61914c 100644 --- a/dev/Stores/User/Message.js +++ b/dev/Stores/User/Message.js @@ -57,8 +57,8 @@ const do { l = html.length; html = html - .replace(/(<[^>]+)[;"']\s*background(-[a-z]+)?\s*:[^;"']+/gi, '$1') - .replace(/(<[^>]+)[;"']\s*color\s*:[^;"']+/gi, '$1') + .replace(/(<[^>]+[;"'])\s*background(-[a-z]+)?\s*:[^;"']+/gi, '$1') + .replace(/(<[^>]+[;"'])\s*color\s*:[^;"']+/gi, '$1') .replace(/(<[^>]+)\s(bg)?color=("[^"]+"|'[^']+')/gi, '$1'); } while (l != html.length) return html;