mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-24 07:43:19 -07:00
But don't include those chars for file text.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user