module Metanorma::Utils
def csv_split(text, delim = ";")
, " => ," : CSV definition does not deal with space followed by quote
def csv_split(text, delim = ";") text.nil? || text.empty? and return [] CSV.parse_line(text.gsub(/#{delim} "(?!")/, "#{delim}\""), liberal_parsing: true, col_sep: delim)&.compact&.map(&:strip) end