rsyslog / liblognorm

a fast samples-based log normalization library
http://www.liblognorm.com
GNU Lesser General Public License v2.1
99 stars 64 forks source link

Does the whitespace type include tabs? #287

Closed deoren closed 6 years ago

deoren commented 6 years ago

@rgerhards

http://www.liblognorm.com/files/manual/configuration.html#whitespace

Does "whitespace" include tabs? I wasn't sure whether I should be expecting a match for one or multiple tabs or whether I need to use an ASCII escape sequence like \x011 to match each one.

I asked on the list, but I suspect that others are just as busy and haven't had time to respond. I know you're also very busy, so anything you're able to offer is appreciated. I'm happy to offer up a PR with additional coverage for that section if/when I ever figure out my problem.

Thanks.

rgerhards commented 6 years ago

I admit I don't know out of my head. Will try to check but need to get some missing imfile bit into the release.

rgerhards commented 6 years ago

Checked from the phone: the whitespace parser uses isspace(), so, yes, HT is whitespace: https://www.tutorialspoint.com/c_standard_library/c_function_isspace.htm

deoren commented 6 years ago

@rgerhards Thanks!