'""' => \&_stringify,
);
-my $int_rx = qr/\d+/;
-my $dotted_num_rx = qr/$int_rx(?:\.$int_rx)*/;
+my $int_rx = qr/[0-9]+/;
+my $dotted_num_rx = qr/$int_rx(?:\.$int_rx)*/o;
-our $version_rx = qr/$dotted_num_rx(?:_p$dotted_num_rx)?(?:-r$int_rx)?/;
+our $version_rx = qr/$dotted_num_rx(?:_p$dotted_num_rx)?(?:-r$int_rx)?/o;
=head1 METHODS
if (defined $vstring) {
$vstring =~ s/^[._]+//g;
$vstring =~ s/[._]+$//g;
- if ($vstring =~ /^($dotted_num_rx)(?:_p($dotted_num_rx))?(?:-r($int_rx))?$/) {
+ if ($vstring =~ /^($dotted_num_rx)(?:_p($dotted_num_rx))?(?:-r($int_rx))?$/o){
return bless {
string => $vstring,
version => [ split /\.+/, $1 ],