]> Sergey Matveev's repositories - public-inbox.git/commit
viewdiff: diff_before_or_after: avoid extra capture
authorEric Wong <e@80x24.org>
Sat, 10 Sep 2022 08:17:20 +0000 (08:17 +0000)
committerEric Wong <e@80x24.org>
Sat, 10 Sep 2022 19:50:49 +0000 (19:50 +0000)
commitfd541d0488980f649fe615d3c2fc10578a33e339
tree13e9ff551305029cad2f8c359bc06e9952a9b842
parentab9c03ff4aa369b397dc1a8c8936153c8565fd05
viewdiff: diff_before_or_after: avoid extra capture

/(.*?)\z/ will capture the "$X insertions(+), $Y deletions(-)"
bit anyways, along with whatever extra notes before the
/^diff --git / line.  So just rely on /(.*?)\z/ and avoid
the special case before it.
lib/PublicInbox/ViewDiff.pm