From 0c3fbbbeb9ae63fd0bc8c9dd7e21f6bab18fa8d2 Mon Sep 17 00:00:00 2001 From: armored-dragon Date: Thu, 19 Dec 2024 04:48:56 -0600 Subject: [PATCH] Fix formatting sometimes not formatting the last part of a message. --- scripts/system/domainChat/domainChat.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/system/domainChat/domainChat.js b/scripts/system/domainChat/domainChat.js index 780879f8c1..411e6bd278 100644 --- a/scripts/system/domainChat/domainChat.js +++ b/scripts/system/domainChat/domainChat.js @@ -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'});