git: 7d254c8aab - main - no prefix search for requires supported yet

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=7d254c8aabca7a96cb9375490b89b5291f9376ad

commit 7d254c8aabca7a96cb9375490b89b5291f9376ad
Author:     Wolfram Schneider <[email protected]>
AuthorDate: 2023-09-17 10:46:18 +0000
Commit:     Wolfram Schneider <[email protected]>
CommitDate: 2023-09-17 10:46:18 +0000

    no prefix search for requires supported yet
---
 website/content/en/cgi/ports.cgi | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/website/content/en/cgi/ports.cgi b/website/content/en/cgi/ports.cgi
index 379b12550a..099630b01f 100755
--- a/website/content/en/cgi/ports.cgi
+++ b/website/content/en/cgi/ports.cgi
@@ -591,10 +591,15 @@ if ( $query_string eq "" || !$query ) {
 &check_input;
 $counter = 0;
 
+# no prefix search for requires supported yet
+$query =~ s/^\^// if $stype eq 'requires'; 
+
+# quote non characters
+$query =~ s/([^\w\^])/\\$1/g;
+
 # search
 if ($query) {
     &readindex( *today, *msec );
-    $query =~ s/([^\w\^])/\\$1/g;
     &search_ports;
 }
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.