Skip to content

Commit 8f76853

Browse files
committed
wip
1 parent b6892df commit 8f76853

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.*>?/', '')
53+
->replaceRegex('/^(.|\n)*?<x-component.*>/', '')
5454
->replaceRegex('/<\/x-component>$/', '')
5555
->toString();
5656

0 commit comments

Comments
 (0)