Improve @NUMBER@ / @DOUBLE@ support for numbers with signs#5620
Improve @NUMBER@ / @DOUBLE@ support for numbers with signs#5620HofiOne merged 2 commits intosyslog-ng:developfrom
@NUMBER@ / @DOUBLE@ support for numbers with signs#5620Conversation
|
Can one of the admins verify this patch? |
1 similar comment
|
Can one of the admins verify this patch? |
@NUMBER@ / @DOUBLE@ support for numbers with signs
|
@kira-syslogng test this please |
|
Thanks for your contribution! We started the test builds now, but will most likely get to the actual code review only early next week. |
I just realized that I worked on top of
|
4ffe5e7 to
43eb763
Compare
Fedora issues will be solved by #5619 |
43eb763 to
6bd55db
Compare
PatternDB currently accept no sign or a minus sign before a number, but an explicit plus sign is rejected. Allow an explicit plus sign to be present. Signed-off-by: Romain Tartière <[email protected]>
Only hexadecimal numbers without a sign are accepted by PatternDB. An hexadecimal number my have a negative sign or an explicit positive sign. Add support for them. Signed-off-by: Romain Tartière <[email protected]>
6bd55db to
390c05d
Compare
|
@kira-syslogng test this please |
When parsing numbers using the
@NUMBER@or@DOUBLE@pattern parsers, some sign are not allowed making PatternDB reject expressions that are properly formatted numbers:+signs are rejected at the beginning of a number / exponent part of a number:+1000+1.51e+3+0xFF-sign before an hexadecimal value is also rejected:-0xFFMake sure these value are properly parsed.
Fixes #5406