]> Sergey Matveev's repositories - public-inbox.git/commit
view: _th_index_lite: avoid one s///, improve symmetry
authorEric Wong <e@80x24.org>
Sat, 10 Sep 2022 08:17:09 +0000 (08:17 +0000)
committerEric Wong <e@80x24.org>
Sat, 10 Sep 2022 19:50:39 +0000 (19:50 +0000)
commit41c999da8f25bbe822366ffe4ac65c953ea40679
tree2b3cda0a983d8140b486de440610c81ee6206c2f
parente1190baa1463ee37e45b439a38f5e376ad39614b
view: _th_index_lite: avoid one s///, improve symmetry

We can replace an expensive `s///' substitution with a simpler
`chop'.  Furthermore, we can delay the "</b>\n" replacement
to ensure it's on the same line of Perl code as the `<b>'
opening tag for readability.
lib/PublicInbox/View.pm