mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
style(ztds): format regex pattern with ruff to pass CI lint gate
This commit is contained in:
parent
555973865d
commit
d2ac988163
1 changed files with 1 additions and 3 deletions
|
|
@ -40,9 +40,7 @@ class ZTDSGuardrail(CustomGuardrail):
|
|||
|
||||
# Comprehensive zero-egress regex patterns for sensitive identifiers
|
||||
PATTERNS: ClassVar[dict[str, re.Pattern]] = {
|
||||
"EMAIL": re.compile(
|
||||
r"\b[A-Za-z0-9._%+-]{1,64}@[A-Za-z0-9-]{1,63}(?:\.[A-Za-z0-9-]{1,63})*\.[A-Za-z]{2,24}\b"
|
||||
),
|
||||
"EMAIL": re.compile(r"\b[A-Za-z0-9._%+-]{1,64}@[A-Za-z0-9-]{1,63}(?:\.[A-Za-z0-9-]{1,63})*\.[A-Za-z]{2,24}\b"),
|
||||
"IPV4": re.compile(r"\b(?:\d{1,3}\.){3}\d{1,3}\b"),
|
||||
"IBAN": re.compile(r"\b[A-Z]{2}[0-9]{2}[A-Z0-9]{4}[0-9]{7}([A-Z0-9]?){0,16}\b"),
|
||||
"CREDIT_CARD": re.compile(r"\b(?:\d{4}[-\s]?){3}\d{4}\b"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue