fix(plugins): word the redaction's URL comment so the secret scan passes

detect-secrets read the comment's scheme://user:password@host as Basic Auth credentials.
This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-10-13 21:41:19 -07:00
parent 3c61cab4de
commit 2264efed24

View file

@ -14,7 +14,7 @@ from typing import Any
REDACTED = "***"
_REDACTIONS = (
# scheme://user:password@host, the form every proxy is given in.
# A URL's user and password before its host, the form every proxy is given in.
(
re.compile(r"(\b[a-zA-Z][a-zA-Z0-9+.-]*://)[^\s/?#@'\"<>]+@"),
rf"\1{REDACTED}@",