docs(parser): clarify why delimiter detection is needed

Unicode │ (U+2502) and ASCII | are different bytes, so splitting
on the wrong one produces no split at all.
This commit is contained in:
Vesa Vänskä 2026-04-14 05:57:35 +02:00
parent 2503c08863
commit 446f321deb
No known key found for this signature in database

View file

@ -23,7 +23,7 @@ function isDataRow(line: string): boolean {
function splitCells(line: string): string[] {
const trimmed = line.trim();
// Determine which delimiter is used
// Unicode │ (U+2502) and ASCII | are different bytes — split on the right one
const delimiter = trimmed.includes("│") ? "│" : "|";
const parts = trimmed.split(delimiter);