lib/fluent/mixin/plaintextformatter.rb in fluent-mixin-plaintextformatter-0.2.1 vs lib/fluent/mixin/plaintextformatter.rb in fluent-mixin-plaintextformatter-0.2.2
- old
+ new
@@ -59,10 +59,10 @@
@custom_attributes = if @output_data_type == 'json'
nil
elsif @output_data_type == 'ltsv'
nil
elsif @output_data_type =~ /^attr:(.+)$/
- $1.split(',')
+ $1.split(',').map(&:strip).reject(&:empty?)
else
raise Fluent::ConfigError, "invalid output_data_type:'#{@output_data_type}'"
end
end