git: b5594482ad - main - link to HTTPS URLs as well

From: Wolfram Schneider <wosch_at_FreeBSD.org>
Date: Sat, 05 Feb 2022 15:18:51 UTC
The branch main has been updated by wosch:

URL: https://cgit.FreeBSD.org/doc/commit/?id=b5594482ad425ca579a20d89b3bc3f4b0b539e88

commit b5594482ad425ca579a20d89b3bc3f4b0b539e88
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2022-02-05 15:18:46 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2022-02-05 15:18:46 +0000

    link to HTTPS URLs as well
---
 website/content/en/cgi/man.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/website/content/en/cgi/man.cgi b/website/content/en/cgi/man.cgi
index 0818d076ee..4734042f8c 100755
--- a/website/content/en/cgi/man.cgi
+++ b/website/content/en/cgi/man.cgi
@@ -1625,7 +1625,7 @@ s/([a-z0-9_\-\.]+\@[a-z0-9\-\.]+\.[a-z]+)/<a href="mailto:$1">$1<\/A>/gi;
         }
 
         # detect URLs in manpages
-        if (m%tp://%) {
+        if (m,\b(ftp|http|https)://,) {
             s,((ftp|http|https)://[^\s<>\)]+),<a href="$1">$1</a>,gi;
         }