Fixed: HTML filter (If website does not deliver any charset) (#340)
This commit is contained in:
parent
d916f32ebf
commit
a00f25d6ef
|
@ -91,7 +91,7 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) {
|
|||
charsetMatch = htmlHead.match(/<meta\s+charset=["']?([^>"'\/]+)["'>\/]/i);
|
||||
if (charsetMatch === null) {
|
||||
// eslint-disable-next-line no-useless-escape
|
||||
charsetMatch = htmlHead.match(/<meta.*charset=["']?([^>"'\/]+)["'].*[>\/]/i);
|
||||
charsetMatch = htmlHead.match(/<meta.*charset=["']?([^>"'\/]+)["'].*[>\/]/i) || 'utf8';
|
||||
}
|
||||
|
||||
if (EncodingTypes[charsetMatch[1].toLowerCase()] !== undefined) {
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
<li>Added: animejs v3.2.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/338">#338</a>)</li>
|
||||
<li>Improved: Google Font detection (<a href="https://codeberg.org/nobody/LocalCDN/issues/332">#332</a>)</li>
|
||||
<li>Added: babel-standalone v6.26.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/332">#332</a>)</li>
|
||||
<li>Fixed: HTML filter (If website does not deliver any charset) (<a href="https://codeberg.org/nobody/LocalCDN/issues/340">#340</a>)</li>
|
||||
</ul>
|
||||
<div id="generator-section">
|
||||
<div class="topic-label">
|
||||
|
|
Loading…
Reference in New Issue