Issue 5316#16332
Conversation
|
Hi @lisovyievhenii. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
phoenix128
left a comment
There was a problem hiding this comment.
Hello @lisovyievhenii ,
thank you for your contribution, would you please check my reviews? Thank you.
| '#(?<!:|\'|")//[^\n\r]*(\s\?\>)#', | ||
| '$1', | ||
| '#(?<!:|\'|")//[^\n\r]*(\?\>)#', | ||
| ' $1', |
There was a problem hiding this comment.
Why you did not simpy change the regular expression in #(?<!:|'|")//[^\n\r]*(\s*\?\>)#, instead of adding the prefixing space in the replacement?
There was a problem hiding this comment.
In case if the code will be like this one:
<?php//else:?>
if the replacement string will be just '$1', we will get the result:
<?php?>
So it will cause calling of undefined conftant php and to prevent it I added the prefixing space in the replacement.
|
@lisovyievhenii , |
|
Ok, I will adjust |
phoenix128
left a comment
There was a problem hiding this comment.
Thank you @lisovyievhenii for your work and for your time. We appreciate it.
|
Hi @phoenix128, thank you for the review. |
|
Hi @lisovyievhenii. Thank you for your contribution. |
Description
Fix HTML minification problem, when there is a php a comment and no space at the php end tag
Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist