about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/PublicInbox/View.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 23cb369b..d1bb9356 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -95,11 +95,11 @@ sub index_entry {
                 $s =~ s/(?:^[^\n]*:\s*\n)?(?:^>[^\n]*\n)+(?:^\s*\n)?//mg;
 
                 # Drop signatures
-                $s =~ s/\n*-- \n.*\z//s;
+                $s =~ s/^-- \n.*\z//ms;
 
                 # drop the remainder of git patches, they're usually better
                 # to review when the full message is viewed
-                if ($s =~ s/\n*---\n.*\z//s) {
+                if ($s =~ s/^---\n.*\z//ms) {
                         $more = "$pfx...\n";
                 }