SilverElixir commited on
Commit
c8fec3d
·
1 Parent(s): fd5cff9

Drop unused _normalize_for_detection helper

Browse files
Files changed (1) hide show
  1. lumen_security.py +0 -8
lumen_security.py CHANGED
@@ -221,14 +221,6 @@ _INJECTION_PROBE_RE = re.compile(
221
  re.IGNORECASE,
222
  )
223
 
224
- def _normalize_for_detection(text: str) -> str:
225
- # Обход через невидимки/совместимые символы: чистим копию для проверки.
226
- if not text:
227
- return text
228
- norm = unicodedata.normalize("NFKC", text)
229
- return "".join(ch for ch in norm if unicodedata.category(ch) != "Cf")
230
-
231
-
232
  def _looks_like_injection_probe(text: str) -> bool:
233
  """Чистая функция — тестируется отдельно от _handle_message_core."""
234
  if not text:
 
221
  re.IGNORECASE,
222
  )
223
 
 
 
 
 
 
 
 
 
224
  def _looks_like_injection_probe(text: str) -> bool:
225
  """Чистая функция — тестируется отдельно от _handle_message_core."""
226
  if not text: