From c4d623f55f909e331768d9d2b7258992398f12b1 Mon Sep 17 00:00:00 2001 From: Jowan-Spooner Date: Mon, 29 Jan 2024 09:52:30 +0100 Subject: [PATCH] Fix regex for 4.3 (#2049) --- addons/dialogic/Modules/Text/event_text.gd | 3 +-- .../Modules/Variable/variables_editor/variable_tree.gd | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/addons/dialogic/Modules/Text/event_text.gd b/addons/dialogic/Modules/Text/event_text.gd index 33734ed84..2b15d3331 100644 --- a/addons/dialogic/Modules/Text/event_text.gd +++ b/addons/dialogic/Modules/Text/event_text.gd @@ -35,8 +35,7 @@ var character_identifier: String: # Reference regex without Godot escapes: ((")?(?(?(2)[^"\n]*|[^(: \n]*))(?(2)"|)(\W*\((?.*)\))?\s*(?(.|\n)*) var regex := RegEx.create_from_string("((\")?(?(?(2)[^\"\\n]*|[^(: \\n]*))(?(2)\"|)(\\W*(?\\(.*\\)))?\\s*(?(.|\\n)*)") -# Reference regex without godot escapes: ((\[n\]|\[n\+\])?((?!(\[n\]|\[n\+\]))(.|\n))*) -var split_regex := RegEx.create_from_string("((\\[n\\]|\\[n\\+\\])?((?!(\\[n\\]|\\[n\\+\\]))(.|\\n))*)") +var split_regex := RegEx.create_from_string(r"((\[n\]|\[n\+\])?((?!(\[n\]|\[n\+\]))(.|\n))+)") enum States {REVEALING, IDLE, DONE} var state := States.IDLE diff --git a/addons/dialogic/Modules/Variable/variables_editor/variable_tree.gd b/addons/dialogic/Modules/Variable/variables_editor/variable_tree.gd index 0bc7ce814..c246b8d16 100644 --- a/addons/dialogic/Modules/Variable/variables_editor/variable_tree.gd +++ b/addons/dialogic/Modules/Variable/variables_editor/variable_tree.gd @@ -154,12 +154,10 @@ func _on_item_edited() -> void: else: if item.get_text(0) != item.get_metadata(0): - print("Variable renamed from '", item.get_metadata(0), "' to '", item.get_text(0),"'") item.set_metadata(0, item.get_text(0)) report_name_changes(item) 2: - print("Variable default changed.") item.set_metadata(2, get_variable_item_default(item)) "FOLDER": report_name_changes(item)