@youtyan/code-viewer 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/code-viewer.js +1 -1
- package/package.json +1 -1
package/dist/code-viewer.js
CHANGED
|
@@ -6996,7 +6996,7 @@ function stripFinalRecordSeparator(text, recordSeparator) {
|
|
|
6996
6996
|
return text.endsWith(recordSeparator) ? text.slice(0, -recordSeparator.length) : text;
|
|
6997
6997
|
}
|
|
6998
6998
|
function parseTsvOutput(stdout, hasHeader, recordSeparator) {
|
|
6999
|
-
const text = recordSeparator ? stripFinalRecordSeparator(stdout, recordSeparator) : stripFinalLineBreak(stdout);
|
|
6999
|
+
const text = recordSeparator ? stripFinalRecordSeparator(stripFinalLineBreak(stdout), recordSeparator) : stripFinalLineBreak(stdout);
|
|
7000
7000
|
if (text.length === 0)
|
|
7001
7001
|
return { columns: [], rows: [] };
|
|
7002
7002
|
const lines = recordSeparator ? text.split(recordSeparator) : text.split(/\r?\n/);
|