u-ichi / fluent-plugin-mail

Fluentd output plugin to send mail
https://rubygems.org/gems/fluent-plugin-mail
Other
48 stars 20 forks source link

Use whitespace considered split method #39

Closed cosmo0920 closed 6 years ago

cosmo0920 commented 7 years ago

This is an another approach of #38. But I dislike this approach because v0.10 is already EOL and fluentd plugin should be encouraged to use convenient method to prevent making a pitfall.


Because non-regexp splitting way makes some pitfail:

message_out_keys id,name,age

and

message_out_keys id, name, age

is not equal.

Formater is interpreted as ['id', 'name', 'age']. But latter is ['id', ' name', ' age'].

sonots commented 6 years ago

https://github.com/u-ichi/fluent-plugin-mail/pull/38 is merged instead of this.