[Bps-public-commit] r18265 - Net-Google-Code/trunk/lib/Net/Google/Code
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Feb 5 21:07:20 EST 2009
Author: sunnavy
Date: Thu Feb 5 21:07:19 2009
New Revision: 18265
Modified:
Net-Google-Code/trunk/lib/Net/Google/Code/WikiEntry.pm
Log:
remove the trailing \s+ stuff from summary and labels in wiki
Modified: Net-Google-Code/trunk/lib/Net/Google/Code/WikiEntry.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code/WikiEntry.pm (original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/WikiEntry.pm Thu Feb 5 21:07:19 2009
@@ -99,7 +99,7 @@
if ( $self->has_source ) { # get from source
my @lines = split(/\n/, $self->source);
foreach my $line (@lines ) {
- if ( $line =~ /^\#summary\s+(.*?)$/ ) {
+ if ( $line =~ /^\#summary\s+(.*?)\s+$/ ) {
return $1;
}
last if ( $line !~ /^\#/ );
@@ -157,7 +157,7 @@
if ( $self->has_source ) { # get from source
my @lines = split(/\n/, $self->source);
foreach my $line (@lines ) {
- if ( $line =~ /^\#labels\s+(.*?)$/ ) {
+ if ( $line =~ /^\#labels\s+(.*?)\s+$/ ) {
return [ split(/\,/, $1) ];
}
last if ( $line !~ /^\#/ );
More information about the Bps-public-commit
mailing list