diff --git a/lib/soupify.ts b/lib/soupify.ts index 164aab19..bcd484a5 100644 --- a/lib/soupify.ts +++ b/lib/soupify.ts @@ -84,7 +84,9 @@ console.log(JSON.stringify(elements)) .stderr(debug.enabled ? "inheritPiped" : "piped") .noThrow() - const rawSoup = processResult.stdout + // TODO we should send it to a temporarty file rather than rely on stdout + // which can easily be polluted + const rawSoup = processResult.stdout.replace(/^[^\[]*/, "") const errText = processResult.stderr debug(`deleting ${tmpFilePath}`)