Fixing multiline Blade comments, making closing comment tag required
This commit is contained in:
parent
d9802fe656
commit
3d7dc61697
|
@ -185,9 +185,9 @@ protected static function extract($value, $expression)
|
||||||
*/
|
*/
|
||||||
protected static function compile_comments($value)
|
protected static function compile_comments($value)
|
||||||
{
|
{
|
||||||
$value = preg_replace('/\{\{--(.+?)(--\}\})?\n/', "<?php // $1 ?>", $value);
|
$value = preg_replace('/\{\{--(.*?)--\}\}/', "<?php // $1 ?>", $value);
|
||||||
|
|
||||||
return preg_replace('/\{\{--((.|\s)*?)--\}\}/', "<?php /* $1 */ ?>\n", $value);
|
return preg_replace('/\{\{--(.*?)--\}\}/s', "<?php /* ?>$1<?php */ ?>", $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue