git: 7d254c8aab - main - no prefix search for requires supported yet
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 17 Sep 2023 10:46:25 UTC
The branch main has been updated by wosch: URL: https://cgit.FreeBSD.org/doc/commit/?id=7d254c8aabca7a96cb9375490b89b5291f9376ad commit 7d254c8aabca7a96cb9375490b89b5291f9376ad Author: Wolfram Schneider <wosch@FreeBSD.org> AuthorDate: 2023-09-17 10:46:18 +0000 Commit: Wolfram Schneider <wosch@FreeBSD.org> 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; }