From 0a0244cdfa92674b93504189961f0a97a5a06177 Mon Sep 17 00:00:00 2001 From: David Rault Date: Thu, 30 Sep 2021 10:46:35 +0200 Subject: [PATCH] DSV Pipe (|) potential delimiter [ci skip] --- bits/40_harb.js | 6 ++++-- docbits/80_parseopts.md | 10 ++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/bits/40_harb.js b/bits/40_harb.js index a823197..0892781 100644 --- a/bits/40_harb.js +++ b/bits/40_harb.js @@ -814,14 +814,16 @@ var PRN = (function() { var guess_seps = { /*::[*/0x2C/*::]*/: ',', /*::[*/0x09/*::]*/: "\t", - /*::[*/0x3B/*::]*/: ';' + /*::[*/0x3B/*::]*/: ';', + /*::[*/0x7C/*::]*/: '|' }; // CSV separator weights to be used in case of equal numbers var guess_sep_weights = { /*::[*/0x2C/*::]*/: 3, /*::[*/0x09/*::]*/: 2, - /*::[*/0x3B/*::]*/: 1 + /*::[*/0x3B/*::]*/: 1, + /*::[*/0x7C/*::]*/: 0 }; function guess_sep(str) { diff --git a/docbits/80_parseopts.md b/docbits/80_parseopts.md index 6f8af41..30d969f 100644 --- a/docbits/80_parseopts.md +++ b/docbits/80_parseopts.md @@ -107,14 +107,16 @@ Plain text format guessing follows the priority order: |:-------|:--------------------------------------------------------------------| | XML | `