From 2a2877f7c42a130056d2ca9cc4be516644c88a3a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 6 Feb 2019 21:21:02 +0100 Subject: [PATCH] bugfix: field splitting --- pdiread.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pdiread.sh b/pdiread.sh index e01c71c..112a827 100755 --- a/pdiread.sh +++ b/pdiread.sh @@ -38,11 +38,6 @@ pdi_load() { # === strip trailing CR (but keep CRs in property value) === # s;\r$;;; # already done in in previous filter - # unscramble aggregated fields - :disag - s;^([^:]+:)((.*[^\])?(\\\\)*),;\1\2\n\1;; - t disag; - # === Normalise various known vendor properties === s;^X-MS-CARDPICTURE(\;|:);PHOTO\1;; s;^X-GENDER(\;|:);GENDER\1;; @@ -75,6 +70,11 @@ pdi_load() { # === Insert empty attribute fields where no attributes are present === s;^([^;:]+):;\1\;:;; + + # unscramble aggregated fields + :disag + s;^([^:]+:)((.*[^\])?(\\\\)*),;\1\2\n\1;; + t disag; ' } -- 2.39.2