forked from woofmeow/straywild
Change: empty check to reject all whitespace kinds
This commit is contained in:
parent
09b7a78533
commit
ea99f2b7d7
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue