From ea99f2b7d769a11e37529eee4969ef45a5d1ae6d Mon Sep 17 00:00:00 2001 From: Toes | Robin Ury <1146921+binury@users.noreply.github.com> Date: Thu, 20 Aug 2026 08:58:25 -0400 Subject: [PATCH] Change: empty check to reject all whitespace kinds --- ui/chat_ui.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/chat_ui.gd b/ui/chat_ui.gd index c79d80c..3af30f3 100644 --- a/ui/chat_ui.gd +++ b/ui/chat_ui.gd @@ -894,7 +894,8 @@ func _send() -> void: if _send_pending: return var body := _entry.text - if body.strip_edges().is_empty(): + var not_empty: = RegEx.create_from_string("\\w") + if not_empty.search(body) == null: close_chat() return _send_pending = true