Skip to content

Commit f267de2

Browse files
authored
fix(core): display clean version in about command (#1251)
1 parent dcf926a commit f267de2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/EnvironmentInsightsProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ private function getComposerVersion(): Insight|string
3838

3939
return \Tempest\Support\Regex\get_match(
4040
subject: $output,
41-
pattern: "/Composer version (\S+)/",
42-
match: 0,
41+
pattern: "/Composer version (?<version>\S+)/",
42+
match: 'version',
4343
default: new Insight('Unknown', Insight::ERROR),
4444
);
4545
}

0 commit comments

Comments
 (0)