git: 0eb3880d1a - main - match ports which have more than one section
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 14 Aug 2024 15:47:02 UTC
The branch main has been updated by wosch: URL: https://cgit.FreeBSD.org/doc/commit/?id=0eb3880d1a874beeb7d75fc1f3362aa6731c7c24 commit 0eb3880d1a874beeb7d75fc1f3362aa6731c7c24 Author: Wolfram Schneider <wosch@FreeBSD.org> AuthorDate: 2024-08-14 15:46:11 +0000 Commit: Wolfram Schneider <wosch@FreeBSD.org> 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";