mirror of
https://github.com/vesan/obsidian-table-beautifier.git
synced 2026-07-22 06:53:19 +00:00
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:
parent
2503c08863
commit
446f321deb
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue