diff options
author | Eric Wong <e@80x24.org> | 2014-08-28 05:06:41 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-08-28 05:08:07 +0000 |
commit | 1f23784800e0cc018b0e8565ca06bab0b2d08f7c (patch) | |
tree | 7c86564b5b172464c66f4ad529a45a9882bfefa0 /lib | |
parent | ae2891b12c078682e52c1c2d60482453e0e10095 (diff) | |
download | public-inbox-1f23784800e0cc018b0e8565ca06bab0b2d08f7c.tar.gz |
The previous regexp matches were too aggressive w.r.t. scissors. We destroy trailing whitespace anyways, so do not worry about it when cutting signatures and patches off.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/View.pm | 4 |
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"; } |