]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/WwwText.pm
www_text: fix #nntp anchor for there's a single NNTP server
[public-inbox.git] / lib / PublicInbox / WwwText.pm
index c067369ea8afe40499820fcc8e9740e3300f711c..581a19f34c4d9f0787e8716476d616362fc86f01 100644 (file)
@@ -68,7 +68,7 @@ sub get_text {
        }
        $txt = '<pre>' . $l->linkify_2($txt) . '</pre>';
        $txt =~ s!\bPOP3\b!<a\nid=pop3>POP3</a>!;
-       $txt =~ s!\bNewsgroups\b!<a\nid=nntp>Newsgroups</a>!;
+       $txt =~ s!\b(Newsgroups?)\b!<a\nid=nntp>$1</a>!;
        $txt =~ s!\bIMAP\b!<a\nid=imap>IMAP</a>!;
        PublicInbox::WwwStream::html_oneshot($ctx, $code, \$txt);
 }