mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
clarified a comment
This commit is contained in:
@@ -2256,7 +2256,9 @@ function cleanUpMessage(getMessage, isImpersonate) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getMessage = $.trim(getMessage);
|
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, "");
|
getMessage = getMessage.replace(/\s+$/gm, "");
|
||||||
if (is_pygmalion) {
|
if (is_pygmalion) {
|
||||||
getMessage = getMessage.replace(/<USER>/g, name1);
|
getMessage = getMessage.replace(/<USER>/g, name1);
|
||||||
|
Reference in New Issue
Block a user