options: improve handling of negations when parsing space separated values
authorJo-Philipp Wich <jo@mein.io>
Fri, 26 May 2017 16:42:05 +0000 (18:42 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 26 May 2017 16:52:28 +0000 (18:52 +0200)
Improve the space separated list parser to interprete "val1 ! val2"
as ("val1", "!val2") instead of ("val1", "!", "val2").

This corrects parsing of sections like ...

    config rule
        option sec_ip '! 1.1.1.0/24'

... which previously errored out with:

    Warning: Option @rule[0].src_ip has invalid value '!'

Fixes FS#806.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

No differences found