We shouldn't trim here because this chunk can be the middle of a result line. Saw this removing spaces from the result text, resulting in a miscount later on
This commit is contained in:
Rob Lourens 2019-07-03 10:54:50 -07:00
parent 6af7cde5c0
commit 33c32647a7

View file

@ -210,7 +210,7 @@ export class RipgrepParser extends EventEmitter {
newlineIdx = dataStr.indexOf('\n', prevIdx);
}
this.remainder = dataStr.substring(prevIdx).trim();
this.remainder = dataStr.substring(prevIdx);
}
private handleLine(outputLine: string): void {