File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
lib/internal/Magento/Framework/View Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ public function minify($file)
131
131
'#(?<!:| \\\\| \'|")//(?!\s*\<\!\[)(?!\s*]]\>)[^\n\r]*# ' ,
132
132
'' ,
133
133
preg_replace (
134
- '#(?<!:)//[^\n\r]*(\s\?\>)# ' ,
134
+ '#(?<!:| \' |" )//[^\n\r]*(\s\?\>)# ' ,
135
135
'$1 ' ,
136
136
preg_replace (
137
137
'#(?<!:)//[^\n\r]*(\<\?php)[^\n\r]*(\s\?\>)[^\n\r]*# ' ,
Original file line number Diff line number Diff line change @@ -149,6 +149,8 @@ public function testMinify()
149
149
//]]>
150
150
</script>
151
151
<?php echo "http://some.link.com/" ?>
152
+ <?php echo "//some.link.com/" ?>
153
+ <?php echo '//some.link.com/' ?>
152
154
<em>inline text</em>
153
155
<a href="http://www.<?php echo 'hi' ?>"></a>
154
156
</body>
@@ -174,7 +176,7 @@ public function testMinify()
174
176
}
175
177
});
176
178
//]]>
177
- </script><?php echo "http://some.link.com/" ?> <em>inline text</em> <a href="http://www.<?php echo 'hi' ?>"></a></body></html>
179
+ </script><?php echo "http://some.link.com/" ?> <?php echo "//some.link.com/" ?> <?php echo '//some.link.com/' ?> < em>inline text</em> <a href="http://www.<?php echo 'hi' ?>"></a></body></html>
178
180
TEXT ;
179
181
180
182
$ this ->appDirectoryMock ->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments