But don't include those chars for file text.

This commit is contained in:
massimilianodelliubaldini
2025-05-16 21:29:36 -04:00
parent 48fe414cda
commit 5c4afc5b1e

View File

@@ -288,8 +288,8 @@ class JakAndDaxterReplClient:
# And don't replace any chars with "?" for good measure.
@staticmethod
def sanitize_file_text(text: str) -> str:
allowed_chars_no_space = ALLOWED_CHARACTERS - {" ", "'"}
result = "".join([c if c in allowed_chars_no_space else "" for c in text[:16]]).upper()
allowed_chars_no_extras = ALLOWED_CHARACTERS - {" ", "'", "(", ")", "\""}
result = "".join([c if c in allowed_chars_no_extras else "" for c in text[:16]]).upper()
return f"\"{result}\""
# Pushes a JsonMessageData object to the json message queue to be processed during the repl main_tick