| 217 | depth = MAX_SCAN_DEPTH; | 217 | depth = MAX_SCAN_DEPTH; |
| 218 | } | 218 | } |
| 219 | | 219 | |
| 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); |
| 222 | | 223 | |
| 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); |