mirror of
https://github.com/overte-org/overte.git
synced 2025-04-10 19:29:07 +02:00
Fix formatting sometimes not formatting the last part of a message.
This commit is contained in:
parent
7d789acaa6
commit
0c3fbbbeb9
1 changed files with 2 additions and 4 deletions
|
@ -306,10 +306,8 @@
|
|||
let firstMatch = _findFirstMatch();
|
||||
|
||||
if (firstMatch == null) {
|
||||
// If there was not any matches found in the entire message, format the whole message as a single text entry.
|
||||
if (messageArray.length == 0) {
|
||||
messageArray.push({type: 'text', value: runningMessage});
|
||||
}
|
||||
// Format any remaining text as a basic 'text' type.
|
||||
messageArray.push({type: 'text', value: runningMessage});
|
||||
|
||||
// Append a final 'fill width' to the message text.
|
||||
messageArray.push({type: 'messageEnd'});
|
||||
|
|
Loading…
Reference in a new issue