]> granicus.if.org Git - docbook-dsssl/commitdiff
strip out dates at the beginning of lines (not just at the beginning of the message)
authorMichael Smith <xmldoc@users.sourceforge.net>
Tue, 8 Apr 2008 03:45:33 +0000 (03:45 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Tue, 8 Apr 2008 03:45:33 +0000 (03:45 +0000)
contrib/tools/svn2twitter/svn2twitter

index e28860818a854092dea6cd3c6d34d8025f8e9d88..44e50c5641c68d1186c24ef6776ce4e9d35da48b 100755 (executable)
@@ -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}};