forked from woofmeow/straywild
Change: empty check to reject all whitespace kinds
This commit is contained in:
parent
876c243a8b
commit
97c74323d8
1 changed files with 3 additions and 2 deletions
|
|
@ -893,8 +893,9 @@ func _on_entry_text_submitted(_value: String) -> void:
|
||||||
func _send() -> void:
|
func _send() -> void:
|
||||||
if _send_pending:
|
if _send_pending:
|
||||||
return
|
return
|
||||||
var body := _entry.text
|
var strippable_spaces := RegEx.create_from_string("(^\\s+|\\s+$)")
|
||||||
if body.strip_edges().is_empty():
|
var body := strippable_spaces.sub(_entry.text, "", true)
|
||||||
|
if body.is_empty():
|
||||||
close_chat()
|
close_chat()
|
||||||
return
|
return
|
||||||
if _handle_editor_world_command(body):
|
if _handle_editor_world_command(body):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue