Skip to content

Commit d484783

Browse files
author
John Peacock
committed
Ordering counts when you have greedy matching
1 parent 6e57f65 commit d484783

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/version/regex.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ $STRICT =
8181
# decimal-point
8282

8383
my $LAX_DECIMAL_VERSION =
84-
qr/ $LAX_INTEGER_PART (?: \. | $FRACTION_PART $LAX_ALPHA_PART? )?
84+
qr/ $LAX_INTEGER_PART (?: $FRACTION_PART | \. )? $LAX_ALPHA_PART?
8585
|
8686
$FRACTION_PART $LAX_ALPHA_PART?
8787
/x;
@@ -106,7 +106,7 @@ my $LAX_DOTTED_DECIMAL_VERSION =
106106
# of return values from ExtUtils::MM->parse_version
107107

108108
$LAX =
109-
qr/ undef | $LAX_DECIMAL_VERSION | $LAX_DOTTED_DECIMAL_VERSION /x;
109+
qr/ undef | $LAX_DOTTED_DECIMAL_VERSION | $LAX_DECIMAL_VERSION /x;
110110

111111
#--------------------------------------------------------------------------#
112112

0 commit comments

Comments
 (0)