From a40c4bd2be6b10cc9fbd954e012ca4e11d6e024f Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 8 Apr 2008 05:11:58 +0000 Subject: [PATCH] er, we do actually still want to strip out the date if it's at the very beginning of the message (not just if at the beginning of a line.. --- contrib/tools/svn2twitter/svn2twitter | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/tools/svn2twitter/svn2twitter b/contrib/tools/svn2twitter/svn2twitter index 44e50c564..2e4121520 100755 --- a/contrib/tools/svn2twitter/svn2twitter +++ b/contrib/tools/svn2twitter/svn2twitter @@ -42,7 +42,8 @@ $author =~ s/^([^@]+)@.+$/$1/; #} my $message = $revs->[0]{message}; chomp $message; -# strip out any date at the beginning of a line +# strip out any date at beginning message and beginning of line +$message =~ s/^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] //g; $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.40.0