Skip to content

Commit 9e682d7

Browse files
committed
wip
1 parent 90963e3 commit 9e682d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/view/src/ViewComponentDiscovery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function discoverPath(DiscoveryLocation $location, string $path): void
5050
preg_match('/(?<header>(.|\n)*?)<x-component name="(?<name>[\w\-]+)">/', $contents->toString(), $matches);
5151

5252
$view = $contents
53-
->replaceRegex('/^(.|\n)*?<x-component name="[\w\-]+">/', '')
53+
->replaceRegex('/(?<header>(.|\n)*?)<x-component name="(?<name>[\w\-]+)">/', '')
5454
->replaceRegex('/<\/x-component>$/', '')
5555
->toString();
5656

0 commit comments

Comments
 (0)