fixing some bugs.

This commit is contained in:
Taylor Otwell
2011-11-15 23:15:58 -06:00
parent 1acd66a247
commit d3f9391981
4 changed files with 7 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ class Blade {
*/
protected static function compile_structure_openings($value)
{
$pattern = '/(\s*)@(if|elseif|foreach|for|while)(\s*\(.*?\))/';
$pattern = '/(\s*)@(if|elseif|foreach|for|while)(\s*\(.*\))/';
return preg_replace($pattern, '$1<?php $2$3: ?>', $value);
}
@@ -153,7 +153,7 @@ class Blade {
*/
protected static function matcher($function)
{
return '/(\s*)@'.$function.'(\s*\(.*?\))/';
return '/(\s*)@'.$function.'(\s*\(.*\))/';
}
}