Skip to content

Commit 2ddadd9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fcdc8e5 commit 2ddadd9

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/models/europython.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,19 @@ def _clean_social_input(text: str) -> str | None:
275275

276276
# Remove invisible Unicode control characters (Bidi, LTR/RTL marks, etc.)
277277
invisible_chars = [
278-
'\u200e', '\u200f', # LTR / RTL marks
279-
'\u202a', '\u202b', '\u202c', '\u202d', '\u202e', # Directional overrides
280-
'\u2066', '\u2067', '\u2068', '\u2069', # Isolates
278+
"\u200e",
279+
"\u200f", # LTR / RTL marks
280+
"\u202a",
281+
"\u202b",
282+
"\u202c",
283+
"\u202d",
284+
"\u202e", # Directional overrides
285+
"\u2066",
286+
"\u2067",
287+
"\u2068",
288+
"\u2069", # Isolates
281289
]
282-
text = re.sub(f"[{''.join(invisible_chars)}]", '', text)
290+
text = re.sub(f"[{''.join(invisible_chars)}]", "", text)
283291

284292
# Percent-encode if needed (e.g., non-ASCII chars)
285293
if not text.isascii():

0 commit comments

Comments
 (0)