Merge pull request #2843 from steve02081504/patch-1 join chatlog with `\x01`

2b08d61c27b6ac6144a100711d071cac74da167f

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
1 files changed, +4 -3Showing whitespace changes
public/scripts/world-info.js+4 -3
@@ -217,15 +217,16 @@ class WorldInfoBuffer {
217 depth = MAX_SCAN_DEPTH;217 depth = MAX_SCAN_DEPTH;
218 }218 }
219219
220 let result = this.#depthBuffer.slice(this.#startDepth, depth).join('\n');220 const JOINER = '\n\x01';
221 let result = this.#depthBuffer.slice(this.#startDepth, depth).join(JOINER);
221222
222 if (this.#injectBuffer.length > 0) {223 if (this.#injectBuffer.length > 0) {
223 result += '\n' + this.#injectBuffer.join('\n');224 result += JOINER + this.#injectBuffer.join(JOINER);
224 }225 }
225226
226 // Min activations should not include the recursion buffer227 // Min activations should not include the recursion buffer
227 if (this.#recurseBuffer.length > 0 && scanState !== scan_state.MIN_ACTIVATIONS) {228 if (this.#recurseBuffer.length > 0 && scanState !== scan_state.MIN_ACTIVATIONS) {
228 result += '\n' + this.#recurseBuffer.join('\n');229 result += JOINER + this.#recurseBuffer.join(JOINER);
229 }230 }
230231
231 return result;232 return result;