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