We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90963e3 commit 9e682d7Copy full SHA for 9e682d7
packages/view/src/ViewComponentDiscovery.php
@@ -50,7 +50,7 @@ public function discoverPath(DiscoveryLocation $location, string $path): void
50
preg_match('/(?<header>(.|\n)*?)<x-component name="(?<name>[\w\-]+)">/', $contents->toString(), $matches);
51
52
$view = $contents
53
- ->replaceRegex('/^(.|\n)*?<x-component name="[\w\-]+">/', '')
+ ->replaceRegex('/(?<header>(.|\n)*?)<x-component name="(?<name>[\w\-]+)">/', '')
54
->replaceRegex('/<\/x-component>$/', '')
55
->toString();
56
0 commit comments