From e66277dd0acf2c0f3bfce949600a3177f513b056 Mon Sep 17 00:00:00 2001 From: Marko <59492330+MarkoCa1@users.noreply.github.com> Date: Mon, 16 Dec 2024 17:48:49 +0800 Subject: [PATCH] Update MKTextNode.py --- MKTextNode.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/MKTextNode.py b/MKTextNode.py index 5390852..0c9df9a 100644 --- a/MKTextNode.py +++ b/MKTextNode.py @@ -106,7 +106,9 @@ class ReplaceText: CATEGORY = "MK/text" def replace_text(self, text, old_string, new_string): + + old_strings = old_string.split(',') + for old in old_strings: + text = text.replace(old, new_string) - text = text.replace(old_string, new_string) - - return (text,) \ No newline at end of file + return (text,)