From a00f25d6efae7115d232ef3864eee0d4a886f5c7 Mon Sep 17 00:00:00 2001 From: nobody Date: Thu, 1 Apr 2021 07:04:47 +0200 Subject: [PATCH] Fixed: HTML filter (If website does not deliver any charset) (#340) --- core/manipulate-dom.js | 2 +- pages/updates/updates.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/manipulate-dom.js b/core/manipulate-dom.js index d972653c..996140bb 100644 --- a/core/manipulate-dom.js +++ b/core/manipulate-dom.js @@ -91,7 +91,7 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) { charsetMatch = htmlHead.match(/"'\/]+)["'>\/]/i); if (charsetMatch === null) { // eslint-disable-next-line no-useless-escape - charsetMatch = htmlHead.match(/"'\/]+)["'].*[>\/]/i); + charsetMatch = htmlHead.match(/"'\/]+)["'].*[>\/]/i) || 'utf8'; } if (EncodingTypes[charsetMatch[1].toLowerCase()] !== undefined) { diff --git a/pages/updates/updates.html b/pages/updates/updates.html index 7460cd4a..45615f5a 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -39,6 +39,7 @@
  • Added: animejs v3.2.1 (#338)
  • Improved: Google Font detection (#332)
  • Added: babel-standalone v6.26.0 (#332)
  • +
  • Fixed: HTML filter (If website does not deliver any charset) (#340)