From nobody Sun Sep 17 10:46:25 2023 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RpPjs697Qz4tVtg for ; Sun, 17 Sep 2023 10:46:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RpPjs4Bmfz4Xjm; Sun, 17 Sep 2023 10:46:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694947585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=StDybMFyzDSs+1ZfHf13k9whCKMVfCxEZNH2j74vO0w=; b=j52+IOBPiDOgPJmsJmdelyQ0Omb3ehB4IuyqZOaKsJQaQfR9aBLQK/XYhybIGUdwzZWwSz B2Gv2jwF4y0G2a5AHiwnOPukEAsA3zWQPw0SrN1nilk3W8Daiw1zSBO393+ERhhCQbvKXf MWW4p3BNoIpA1qcAXGVBjw/DYqW/cru6YzfPlLiWo8h9fAP/8kZ6eFt6YL3P9I2CHJIvDS DvXe61nwkC2wGBqvFx0qmGeEoiTzdEup9gh4lgcyGswR8gwzRkSYxjJbF7x2iyogm++vii SXDujQw4ZAEpT1qaT9ZXvk1ZqbZSXST6k05J/b1v11u9Aiitv+8JlcPuzOr9Yw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694947585; a=rsa-sha256; cv=none; b=Lydpq5/IY8ha/l1chtFMu1Pbwqxz3TOMwPgU25rrKvw0lPcZmJZWJBAnvj8IqFRZKReqvh 997HVYIhx2w/PpLb/p+uXW/St+FKT1fKzB8dLxXoW6rxXUKZnGs6zIEXK2O0BWYVpEir2d ErZFq33vRDw66ecyTUEgdLIQiAI7HKY/lNgAcEsxNMIyJJMH3BcfNOqPaJUzhxvXNWpIxR Pryw6akx2Z+wdwwJtcYqSOnBaQHcv+0Q/mBKBkmxoL460rpyhOHo7R7C96n4nXxrrIsUSr ejp6IUd77mnRH9l5FwA7CaFbK6BKwW2GgWJm/tTsVcdvheOZTKHF0a0QcoiXpA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694947585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=StDybMFyzDSs+1ZfHf13k9whCKMVfCxEZNH2j74vO0w=; b=QKYgCpUpxOu6D8NbnbnbUXu54dQjZsJxpTPWkaGSo2SQc+slW0kmjRJjQTvdBsDzh1Nu3N n0Z5USGemNEgvSXhcHIccseNhIJQ22WDCxDvLroXIv68iOU12bmMPNwxIBrHWDMLIylraA ev6rN/Hx3zneFnrM4+TacEKw+GBrA06L31gk7k4PzKAV9YrAnITK9u/s9onK2BqP6lUpwv cjQ+It1PPFVzCfvvN2/xH0J0A6kHlEXwJzxEVDudSz97le3dTw+jtXNoi0Ig40AJXe7U+T rvHYchU9EMY1+Hb5Sp7toD6G4+pD1J67LcgomU8d26J993oDRiEBgD5AC/tH+w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RpPjs3Gwlzm3c; Sun, 17 Sep 2023 10:46:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38HAkPMY040209; Sun, 17 Sep 2023 10:46:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38HAkPqI040206; Sun, 17 Sep 2023 10:46:25 GMT (envelope-from git) Date: Sun, 17 Sep 2023 10:46:25 GMT Message-Id: <202309171046.38HAkPqI040206@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Wolfram Schneider Subject: git: 7d254c8aab - main - no prefix search for requires supported yet List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wosch X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7d254c8aabca7a96cb9375490b89b5291f9376ad Auto-Submitted: auto-generated The branch main has been updated by wosch: URL: https://cgit.FreeBSD.org/doc/commit/?id=7d254c8aabca7a96cb9375490b89b5291f9376ad commit 7d254c8aabca7a96cb9375490b89b5291f9376ad Author: Wolfram Schneider AuthorDate: 2023-09-17 10:46:18 +0000 Commit: Wolfram Schneider 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; }