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 b6892df commit 8f76853Copy full SHA for 8f76853
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.*>?/', '')
+ ->replaceRegex('/^(.|\n)*?<x-component.*>/', '')
54
->replaceRegex('/<\/x-component>$/', '')
55
->toString();
56
0 commit comments