From: Eric Wong Date: Thu, 11 Aug 2022 15:47:30 +0000 (+0000) Subject: www_text: fix #nntp anchor for there's a single NNTP server X-Git-Tag: v1.9.0~30 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=d765351bc023f0f50e523749e495498c958ea2b3;p=public-inbox.git www_text: fix #nntp anchor for there's a single NNTP server We use "Newsgroup" (singular) when there's only one NNTP server address configured. --- diff --git a/lib/PublicInbox/WwwText.pm b/lib/PublicInbox/WwwText.pm index c067369e..581a19f3 100644 --- a/lib/PublicInbox/WwwText.pm +++ b/lib/PublicInbox/WwwText.pm @@ -68,7 +68,7 @@ sub get_text { } $txt = '
' . $l->linkify_2($txt) . '
'; $txt =~ s!\bPOP3\b!POP3!; - $txt =~ s!\bNewsgroups\b!Newsgroups!; + $txt =~ s!\b(Newsgroups?)\b!$1!; $txt =~ s!\bIMAP\b!IMAP!; PublicInbox::WwwStream::html_oneshot($ctx, $code, \$txt); }