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 06f667b commit 5fbf10bCopy full SHA for 5fbf10b
lib/internal/Magento/Framework/View/Template/Html/Minifier.php
@@ -162,11 +162,11 @@ function ($match) use (&$heredocs) {
162
. '(?:<(?>textarea|pre|script)\b|\z))#',
163
' ',
164
preg_replace(
165
- '#(?<!:|\\\\|\'|"|/)//(?!/)(?!\s*\<\!\[)(?!\s*]]\>)[^\n\r]*'
+ '#(?<!:|\\\\|\\\|\'|"|/)//(?!/)(?!\s*\<\!\[)(?!\s*]]\>)[^\n\r]*'
166
. '(?!(?:(?:[^<]++|<(?!/?(?:script)\b))*+)(?:<(?>script)\b|\z))#',
167
'',
168
169
- '#(?<!:)//[^\n\r]*(\<\?(php|=))[^\n\r]*(\s\?\>)[^\n\r]*'
+ '#(?<!:|\\\)//[^\n\r]*(\<\?(php|=))[^\n\r]*(\s\?\>)[^\n\r]*'
170
171
172
($content ?? '')
0 commit comments