Fix WI joiner/mather not being at the start

c45e42ce7d4bdbcd76f81943165045ad8d1b5442

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +3 -2Showing whitespace changes
public/scripts/world-info.js+3 -2
@@ -217,8 +217,9 @@ class WorldInfoBuffer {
217 depth = MAX_SCAN_DEPTH;217 depth = MAX_SCAN_DEPTH;
218 }218 }
219219
220 const JOINER = '\n\x01';220 const MATCHER = '\x01';
221 let result = this.#depthBuffer.slice(this.#startDepth, depth).join(JOINER);221 const JOINER = '\n' + MATCHER;
222 let result = MATCHER + this.#depthBuffer.slice(this.#startDepth, depth).join(JOINER);
222223
223 if (this.#injectBuffer.length > 0) {224 if (this.#injectBuffer.length > 0) {
224 result += JOINER + this.#injectBuffer.join(JOINER);225 result += JOINER + this.#injectBuffer.join(JOINER);