(self, max_input_chars: int = 2000)
| 245 | """ |
| 246 | |
| 247 | def __init__(self, max_input_chars: int = 2000): |
| 248 | self.max_input_chars = max_input_chars |
| 249 | self._patterns = [ |
| 250 | re.compile(p, re.IGNORECASE | re.DOTALL) |
| 251 | for p in INJECTION_PATTERNS |
| 252 | ] |
| 253 | |
| 254 | def validate(self, user_input: str) -> ValidationResult: |
| 255 | if not user_input or not user_input.strip(): |
nothing calls this directly
no outgoing calls
no test coverage detected