online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/menus/account/Restrict.gd')
| -rw-r--r-- | ui/menus/account/Restrict.gd | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/menus/account/Restrict.gd b/ui/menus/account/Restrict.gd index 5786d80..c1b6470 100644 --- a/ui/menus/account/Restrict.gd +++ b/ui/menus/account/Restrict.gd @@ -4,5 +4,9 @@ class_name Restrict func _on_text_changed(new_text: String): var pos = caret_position - text = new_text.strip_edges() + text = new_text.strip_edges().strip_escapes() caret_position = pos + + +func _ready(): + connect("text_changed", self, "_on_text_changed") |