Fix command output trim

This commit is contained in:
Saoud Rizwan
2024-09-02 04:58:47 -04:00
parent 5609395780
commit c9e417939b

View File

@@ -411,7 +411,7 @@ const ChatRow: React.FC<ChatRowProps> = ({
}
return {
command: text.slice(0, outputIndex).trim(),
output: text.slice(outputIndex + COMMAND_OUTPUT_STRING.length).trimStart(),
output: text.slice(outputIndex + COMMAND_OUTPUT_STRING.length).trim() + " ",
}
}