Date: Wed, 14 Aug 2024 15:47:02 GMT From: Wolfram Schneider <wosch@FreeBSD.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org Subject: git: 0eb3880d1a - main - match ports which have more than one section Message-ID: <202408141547.47EFl2dH007451@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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";
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408141547.47EFl2dH007451>