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-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=145038c020b6f79483ceb9f690402f1391567d16;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}};