From: Michael Smith Date: Tue, 8 Apr 2008 03:45:33 +0000 (+0000) Subject: strip out dates at the beginning of lines (not just at the beginning of the message) X-Git-Tag: release/1.79.1~6^2~1350 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12dc2f2979af9a62b3a1478cf4a5e4c60e335465;p=docbook-dsssl strip out dates at the beginning of lines (not just at the beginning of the message) --- diff --git a/contrib/tools/svn2twitter/svn2twitter b/contrib/tools/svn2twitter/svn2twitter index e28860818..44e50c564 100755 --- a/contrib/tools/svn2twitter/svn2twitter +++ b/contrib/tools/svn2twitter/svn2twitter @@ -42,8 +42,8 @@ $author =~ s/^([^@]+)@.+$/$1/; #} my $message = $revs->[0]{message}; chomp $message; -# strip out dates at the beginning of messsage -$message =~ s/^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] //g; +# strip out any date at the beginning of a line +$message =~ s/\n[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] //g; #my @paths = keys %{$revs->[0]{paths}};