Skip to content

Commit d281aab

Browse files
committed
fix regex
1 parent 4706a16 commit d281aab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BladeFiltersCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class BladeFiltersCompiler
1212
*/
1313
public function compile($value)
1414
{
15-
return preg_replace_callback('/(?<=([^@]{{))(.*?)(?=}})/mu', function ($matches) {
15+
return preg_replace_callback('/(?<=((?<!@){{))(.*?)(?=}})/mu', function ($matches) {
1616
return $this->parseFilters($matches[0]);
1717
}, $value);
1818
}

0 commit comments

Comments
 (0)