Change: empty check to reject all whitespace kinds

This commit is contained in:
Toes | Robin Ury 2026-08-20 08:58:25 -04:00
parent 09b7a78533
commit ea99f2b7d7
No known key found for this signature in database
GPG key ID: A5DAA8C945CA3941

View file

@ -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