lib/logstash/outputs/csv.rb in logstash-output-csv-3.0.9 vs lib/logstash/outputs/csv.rb in logstash-output-csv-3.0.10

- old
+ new

@@ -64,8 +64,8 @@ val.is_a?(Hash) ? LogStash::Json.dump(val) : escape_csv(val) end private def escape_csv(val) - (spreadsheet_safe && val.is_a?(String) && val.start_with?("=")) ? "'#{val}" : val + (spreadsheet_safe && val.is_a?(String) && val.start_with?(/[=+\-@]/)) ? "'#{val}" : val end end # class LogStash::Outputs::CSV