lib/PublicInbox/View.pm | 4 ++-- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 23cb369bedb3e18414f4c050990caa70275bfb36..d1bb93566a5f9fddbf74b270e480665a829e33c9 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -95,11 +95,11 @@ # drop quotes, including the "so-and-so wrote:" line $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"; }