clarified a comment

This commit is contained in:
Bruno FS
2023-04-28 13:41:53 -03:00
parent 6e4aba900f
commit 5a387e3e0b

View File

@@ -2256,7 +2256,9 @@ function cleanUpMessage(getMessage, isImpersonate) {
}
getMessage = $.trim(getMessage);
// remove trailing invisible whitespace from lines
// trailing invisible whitespace before every newlines, on a multiline string
// "trailing whitespace on newlines \nevery line of the string \n?sample text" ->
// "trailing whitespace on newlines\nevery line of the string\nsample text"
getMessage = getMessage.replace(/\s+$/gm, "");
if (is_pygmalion) {
getMessage = getMessage.replace(/<USER>/g, name1);