git: 0eb3880d1a - main - match ports which have more than one section

Wolfram Schneider <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by wosch:

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

commit 0eb3880d1a874beeb7d75fc1f3362aa6731c7c24
Author:     Wolfram Schneider <[email protected]>
AuthorDate: 2024-08-14 15:46:11 +0000
Commit:     Wolfram Schneider <[email protected]>
CommitDate: 2024-08-14 15:46:11 +0000

    match ports which have more than one section
---
 website/content/en/cgi/ports.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/website/content/en/cgi/ports.cgi b/website/content/en/cgi/ports.cgi
index 0b2588d24a..ab9b644b72 100755
--- a/website/content/en/cgi/ports.cgi
+++ b/website/content/en/cgi/ports.cgi
@@ -351,7 +351,7 @@ sub search_ports {
         $text = $a[3];                         #$text =~ s/(\W)/\\$1/g;
 
         if ( $section ne "all" ) {
-            next if $a[6] !~ /^$section(\s|$)/;
+            next if $a[6] !~ /\b$section\b/;
         }
 
         #warn "$stype:$query: $name $text\n";
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.