Move joiner into constant

f1f74217cc191973ccaab708d99098459544fa3a

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

1 files changed, +4 -3Showing whitespace changes
public/scripts/world-info.js+4 -3
@@ -217,15 +217,16 @@ class WorldInfoBuffer {
217217 depth = MAX_SCAN_DEPTH;
218218 }
219219
220220 letconst resultJOINER = this.#depthBuffer.slice(this.#startDepth, depth).join('\n\x01');
221+ let result = this.#depthBuffer.slice(this.#startDepth, depth).join(JOINER);
221222
222223 if (this.#injectBuffer.length > 0) {
223224 result += '\n\x01'JOINER + this.#injectBuffer.join('\n\x01'JOINER);
224225 }
225226
226227 // Min activations should not include the recursion buffer
227228 if (this.#recurseBuffer.length > 0 && scanState !== scan_state.MIN_ACTIVATIONS) {
228229 result += '\n\x01'JOINER + this.#recurseBuffer.join('\n\x01'JOINER);
229230 }
230231
231232 return result;