diff options
| author | Christian Couder <christian.couder@gmail.com> | 2026-05-27 16:08:15 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-05-28 05:20:15 +0900 |
| commit | 58880c82feb460015153575dc02b9959e4d8a8a0 (patch) | |
| tree | e598976e7ffe38b7eddc7a3276b9b17eac22b4af /gitweb/gitweb.cgi | |
| parent | ee7ea4907ccef604f764df5e223640ad04192f6d (diff) | |
urlmatch: add url_normalize_pattern() helper
In a following commit, we will need to normalize a URL glob pattern
(which may contain '*' in the host portion) and extract its component
offsets (host, path, etc.) for separate matching. Let's export a
dedicated helper function url_normalize_pattern() for that purpose.
It works like url_normalize(), but passes allow_globs=true to the
internal url_normalize_1(), so that '*' characters in the host are
accepted rather than rejected.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/gitweb.cgi')
0 files changed, 0 insertions, 0 deletions
