Update MKTextNode.py

This commit is contained in:
Marko
2024-12-16 17:48:49 +08:00
committed by GitHub
parent 2bf4c1ece2
commit e66277dd0a
+5 -3
View File
@@ -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,)
return (text,)