X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;ds=sidebyside;f=lib%2FCPANPLUS%2FDist%2FGentoo%2FVersion.pm;h=47cec967983590d1e9930f7587082142b0c4d3db;hb=5d1a0ae140fffe0e908f786d8ecd32f07a129e13;hp=12f75d6e95dcb5235cecf7754a7911c92272116c;hpb=93eb049958520c8b4980d76e5654e5cdd3774d2f;p=perl%2Fmodules%2FCPANPLUS-Dist-Gentoo.git diff --git a/lib/CPANPLUS/Dist/Gentoo/Version.pm b/lib/CPANPLUS/Dist/Gentoo/Version.pm index 12f75d6..47cec96 100644 --- a/lib/CPANPLUS/Dist/Gentoo/Version.pm +++ b/lib/CPANPLUS/Dist/Gentoo/Version.pm @@ -9,11 +9,11 @@ CPANPLUS::Dist::Gentoo::Version - Gentoo version object. =head1 VERSION -Version 0.08 +Version 0.10 =cut -our $VERSION = '0.08'; +our $VERSION = '0.10'; =head1 DESCRIPTION @@ -28,10 +28,10 @@ use overload ( '""' => \&_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 @@ -49,7 +49,7 @@ sub new { 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 ], @@ -134,7 +134,8 @@ You can contact me by mail or on C (vincent). =head1 BUGS -Please report any bugs or feature requests to C, or through the web interface at L. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. +Please report any bugs or feature requests to C, or through the web interface at L. +I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. =head1 SUPPORT @@ -144,7 +145,7 @@ You can find documentation for this module with the perldoc command. =head1 COPYRIGHT & LICENSE -Copyright 2009 Vincent Pit, all rights reserved. +Copyright 2009,2010 Vincent Pit, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.