From 5c4afc5b1edbb1e9dbf5b981d008e0a49af4c0b5 Mon Sep 17 00:00:00 2001 From: massimilianodelliubaldini <8584296+massimilianodelliubaldini@users.noreply.github.com> Date: Fri, 16 May 2025 21:29:36 -0400 Subject: [PATCH] But don't include those chars for file text. --- worlds/jakanddaxter/client/ReplClient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worlds/jakanddaxter/client/ReplClient.py b/worlds/jakanddaxter/client/ReplClient.py index 495163b60c..abe3c9e0c9 100644 --- a/worlds/jakanddaxter/client/ReplClient.py +++ b/worlds/jakanddaxter/client/ReplClient.py @@ -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