From 12dc2f2979af9a62b3a1478cf4a5e4c60e335465 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 8 Apr 2008 03:45:33 +0000 Subject: [PATCH] strip out dates at the beginning of lines (not just at the beginning of the message) --- contrib/tools/svn2twitter/svn2twitter | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}}; -- 2.49.0