From 405c3c9c8c7e746a092622ea7b7a27e6b378e05c Mon Sep 17 00:00:00 2001 From: kennethrioja <59597207+kennethrioja@users.noreply.github.com> Date: Mon, 26 Jan 2026 15:58:02 +0100 Subject: [PATCH] fix(process_array): added a regex to cover most separators --- lib/ingestors/csv_ingestion.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ingestors/csv_ingestion.rb b/lib/ingestors/csv_ingestion.rb index 2cabd66eb..d393dc83d 100644 --- a/lib/ingestors/csv_ingestion.rb +++ b/lib/ingestors/csv_ingestion.rb @@ -15,7 +15,11 @@ def process_description(row, header) end def process_array(row, header) - row[header].to_s.lstrip.split(/;/).reject(&:empty?).compact unless row[header].nil? + # split by: comma or semicolon, optionally surrounded by whitespace + # or two or more whitespace characters + # any number of newline characters + split_regex = /\s*[,;]\s*|\s{2,}|[\r\n]+/x + row[header].to_s.lstrip.split(split_regex).reject(&:empty?).compact unless row[header].nil? end def get_column(row, header)