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 876c243a8b
commit 97c74323d8
No known key found for this signature in database
GPG key ID: A5DAA8C945CA3941

View file

@ -893,8 +893,9 @@ func _on_entry_text_submitted(_value: String) -> void:
func _send() -> void:
if _send_pending:
return
var body := _entry.text
if body.strip_edges().is_empty():
var strippable_spaces := RegEx.create_from_string("(^\\s+|\\s+$)")
var body := strippable_spaces.sub(_entry.text, "", true)
if body.is_empty():
close_chat()
return
if _handle_editor_world_command(body):