Open yaauie opened 6 years ago
@yaauie good idea. maybe we could allow field_split_char
to be an array of chars, so if you need to specify multiple chars in the character classes then this will work. It could completely replace the field_split
option eventually too.
Injecting verbatim input from
field_split
andvalue_split
directives into character classes is prone to user error, requiring our users know which characters are meaningful in the regexp context and properly escaping them in their pipeline configs.When
config.support_escapes
is enabled, users need to double-escape, which makes things extra tricky.This ticket is to add two new directives (
field_split_char
andvalue_split_char
), which will properly escape inputs before generating the character classes.