From 446f321debd1bb237b2f4f6348ec3f74c154484c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vesa=20V=C3=A4nsk=C3=A4?= Date: Tue, 14 Apr 2026 05:57:35 +0200 Subject: [PATCH] docs(parser): clarify why delimiter detection is needed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Unicode │ (U+2502) and ASCII | are different bytes, so splitting on the wrong one produces no split at all. --- src/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.ts b/src/parser.ts index f92e0b1..b9a6dfe 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -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);