Permalink
Browse files

Fixing multiline Blade comments, making closing comment tag required

  • Loading branch information...
akuzemchak committed Jun 4, 2012
1 parent d9802fe commit 3d7dc61697ddfe4b64c0309a76a690514f08544a
Showing with 3 additions and 3 deletions.
  1. +3 −3 laravel/blade.php
View
@@ -185,9 +185,9 @@ protected static function extract($value, $expression)
*/
protected static function compile_comments($value)
{
- $value = preg_replace('/\{\{--(.+?)(--\}\})?\n/', "<?php // $1 ?>", $value);
-
- return preg_replace('/\{\{--((.|\s)*?)--\}\}/', "<?php /* $1 */ ?>\n", $value);
+ $value = preg_replace('/\{\{--(.*?)--\}\}/', "<?php // $1 ?>", $value);
+
+ return preg_replace('/\{\{--(.*?)--\}\}/s', "<?php /* ?>$1<?php */ ?>", $value);
}
/**

0 comments on commit 3d7dc61

Please sign in to comment.