mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix WI joiner/mather not being at the start
This commit is contained in:
@@ -217,8 +217,9 @@ class WorldInfoBuffer {
|
|||||||
depth = MAX_SCAN_DEPTH;
|
depth = MAX_SCAN_DEPTH;
|
||||||
}
|
}
|
||||||
|
|
||||||
const JOINER = '\n\x01';
|
const MATCHER = '\x01';
|
||||||
let result = this.#depthBuffer.slice(this.#startDepth, depth).join(JOINER);
|
const JOINER = '\n' + MATCHER;
|
||||||
|
let result = MATCHER + this.#depthBuffer.slice(this.#startDepth, depth).join(JOINER);
|
||||||
|
|
||||||
if (this.#injectBuffer.length > 0) {
|
if (this.#injectBuffer.length > 0) {
|
||||||
result += JOINER + this.#injectBuffer.join(JOINER);
|
result += JOINER + this.#injectBuffer.join(JOINER);
|
||||||
|
Reference in New Issue
Block a user