nntp: use substr to check for trailing CRLF
authorEric Wong <e@80x24.org>
Sat, 23 Jul 2022 06:13:07 +0000 (06:13 +0000)
committerEric Wong <e@80x24.org>
Sat, 23 Jul 2022 14:22:36 +0000 (14:22 +0000)
commit21fcd8a37c82c1ef654d402cf592f0c9d803aa26
treecdb863ed7b3aca8fff6fb29c8b1af67bef14f027
parent0ae89efce11e1e3b10a067c61c5b4cde30fa2b3b
nntp: use substr to check for trailing CRLF

Regexps consume more CPU cycles and memory, and aren't
necessary here since we just converted the entire buffer
to CRLF.
lib/PublicInbox/NNTP.pm