diff --git a/services/importer/lib/importer/csv_normalizer.rb b/services/importer/lib/importer/csv_normalizer.rb index f4e2aef02a..967bbb8746 100644 --- a/services/importer/lib/importer/csv_normalizer.rb +++ b/services/importer/lib/importer/csv_normalizer.rb @@ -15,7 +15,7 @@ module CartoDB LINES_FOR_DETECTION = 100 # How many lines to read? SAMPLE_READ_LIMIT = 500000 # Read big enough sample bytes for the encoding sampling COMMON_DELIMITERS = [',', "\t", ' ', ';', '|'].freeze - DELIMITER_WEIGHTS = {','=>2, "\t"=>2, ' '=>1, ';'=>2, '|'=>2} + DELIMITER_WEIGHTS = { ',' => 2, "\t" => 2, ' ' => 1, ';' => 2, '|' => 2 }.freeze DEFAULT_DELIMITER = ',' DEFAULT_ENCODING = 'UTF-8' DEFAULT_QUOTE = '"'