Skip to content

Commit

Permalink
Fix regex to extract minor versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Rostovtsev committed Feb 22, 2018
1 parent 1d6c206 commit e8f7cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authentic-init.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ sub get_version
sub get_version_full
{
my ($version, $beta) = @_;
($version) = $version =~ /([0-9]+[.][0-9]+(?:-alpha[\d]+|-beta[\d]+|-RC[\d]+|))/;
($version) = $version =~ /([0-9]+[.][0-9]+(?:.\d+|-alpha[\d]+|-beta[\d]+|-RC[\d]+|))/;
if ($version =~ /beta/ && $beta) {
return undef;
Expand Down

0 comments on commit e8f7cab

Please sign in to comment.