docs: clarify when filter regexes must be quoted (#8346)

Applies reviewer's suggested wording and drops the unrelated
certs.py/test_certs.py changes that had leaked into this branch.

Fixes #7715
This commit is contained in:
citizen204 2026-08-22 19:03:08 +09:30 committed by GitHub
parent 72995cab1c
commit 8fc25b3045
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,6 +14,7 @@ expressions consist of the following operators:
- Regexes are Python-style.
- Regexes can be specified as quoted strings.
- Regexes containing parentheses, whitespace, or the `~`, `'`, `"` characters must be quoted because these characters are reserved by the filter expression syntax. Otherwise, the expression may be parsed differently or rejected. For example, use ~u "get(Info|Routers)".
- Regexes are case-insensitive by default.[^1]
- Header matching (~h, ~hq, ~hs) is against a string of the form "name: value".
- Strings with no operators are matched against the request URL.