Enable image preview in STDOUT

This commit is contained in:
Sebastian Serth
2022-03-02 11:44:48 +01:00
parent 24993a5f49
commit 18daa1c998
2 changed files with 14 additions and 9 deletions

View File

@ -84,7 +84,7 @@ class Runner::Connection::Buffer
# Second, if we have the beginning of a valid command but an invalid JSON
return true if invalid_json && message.start_with?(/\s*{"cmd/)
# Third, buffer the message if it contains long messages (e.g., an image or turtle batch commands)
return true if invalid_json && (message.include?('<img') || message.include?('"turtlebatch"'))
return true if invalid_json && (message.start_with?('<img') || message.include?('"turtlebatch"'))
# If nothing applies, we don't want to buffer the current message
false