We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a748262 commit c380fa0Copy full SHA for c380fa0
app/code/Magento/Theme/Controller/Result/JsFooterPlugin.php
@@ -22,7 +22,7 @@ public function beforeSendResponse(\Magento\Framework\App\Response\Http $subject
22
$script = [];
23
if (strpos($content, '</body') > 0) {
24
$content = preg_replace('#<!--(?!\s?/?ko).*?-->#s', '', $content);
25
- $pattern = '#<script.*?</script>#is';
+ $pattern = '#<script[^>]*+(?<!text/x-magento-template.)>.*?</script>#is';
26
$content = preg_replace_callback(
27
$pattern,
28
function ($matchPart) use (&$script) {
0 commit comments