[WEB-1643] chore: support cyrillic characters in subject #7336

This commit is contained in:
Bavisetti Narayan 2025-07-16 01:04:59 +05:30 committed by GitHub
parent 99127ff8e4
commit 3224122df0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,8 +21,8 @@ from plane.utils.exception_logger import log_exception
def remove_unwanted_characters(input_text):
# Keep only alphanumeric characters, spaces, and dashes.
processed_text = re.sub(r"[^a-zA-Z0-9 \-]", "", input_text)
# Remove only control characters and potentially problematic characters for email subjects
processed_text = re.sub(r"[\x00-\x1F\x7F-\x9F]", "", input_text)
return processed_text