HTML filter modified (#859)
This commit is contained in:
parent
6db70742e4
commit
5cbd55ae38
|
@ -124,7 +124,7 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) {
|
|||
str = str.replace(/<(link|script)[^>]+>/ig, (m) => {
|
||||
// eslint-disable-next-line no-use-before-define
|
||||
if (cdnDomainsRE.test(m)) {
|
||||
return m.replace(/\s+(integrity|crossorigin)(="[^"]*"|='[^']*'|=[^"'`=>\s]+|)/ig, '');
|
||||
return m.replace(/\s+(integrity|crossorigin)(="[^"]*"|='[^']*'|=[^"'`=>\s]+=?|)/ig, '');
|
||||
}
|
||||
return m;
|
||||
});
|
||||
|
|
|
@ -25,9 +25,9 @@
|
|||
<h2>New in LocalCDN:</h2>
|
||||
</div>
|
||||
<div class="release-notes-area">
|
||||
<p></p>
|
||||
<p>Fixed</p>
|
||||
<ul>
|
||||
<li></li>
|
||||
<li>HTML filter modified (<a href="https://codeberg.org/nobody/LocalCDN/issues/859">#859</a>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="generator-section">
|
||||
|
|
Loading…
Reference in New Issue