Fix broken regex.

This commit is contained in:
stevenpritchard
2006-05-04 16:18:17 +00:00
parent a8aabfda51
commit 99660272fa
2 changed files with 7 additions and 3 deletions
+4
View File
@@ -1,3 +1,7 @@
1.66
* Fix $summary modification.
1.65 2006-04-26
* Exclude inc (suggested by Ian Burrell).
+3 -3
View File
@@ -10,10 +10,10 @@
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# $Id: cpanspec,v 1.22 2006/04/26 21:08:45 stevenpritchard Exp $
# $Id: cpanspec,v 1.23 2006/05/04 16:18:17 stevenpritchard Exp $
our $NAME="cpanspec";
our $VERSION='1.65';
our $VERSION='1.66';
=head1 NAME
@@ -393,7 +393,7 @@ sub get_description(%) {
if ($rendered=~/NAME\s*$args{module}\s[-\s]*(\S[^\n]*)/s) {
if ($1 ne "SYNOPSIS") {
$summary=$1;
$summary=~s/[.\s]+//;
$summary=~s/[.\s]+$//;
$summary=~s/^A\s+//i;
$summary=ucfirst($summary);
}