Skip to content

Commit

Permalink
Fixed Lumen version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar committed Feb 1, 2022
1 parent 8a75f39 commit be627c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/AppVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function is(string $version, string $comparator = '>='): bool
public function version(): string
{
if (AppHelper::isLumen()) {
preg_match('/.+\((\d+\.\d+\.\d+)\)/', app()->version(), $matches);
preg_match('/.+\((\d+\.\d+|\d+\.\d+\.\d+)\).+/', app()->version(), $matches);

return $matches[1];
}
Expand Down

0 comments on commit be627c4

Please sign in to comment.