Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Sep 28, 2018
1 parent 1dd87c6 commit 53dfb07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BladeXCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ protected function parseComponentInnerHtml(string $componentInnerHtml): string
{
$pattern = '/<\s*slot[^>]*name=[\'"](.*)[\'"][^>]*>((.|\n)*?)<\s*\/\s*slot>/m';

return preg_replace_callback($pattern, function ($result) {
[$slot, $name, $contents] = $result;
return preg_replace_callback($pattern, function ($regexResult) {
[$slot, $name, $contents] = $regexResult;

return "@slot('{$name}'){$contents}@endslot";
}, $componentInnerHtml);
Expand Down

0 comments on commit 53dfb07

Please sign in to comment.