From: Zbigniew Jędrzejewski-Szmek Date: Sat, 10 Dec 2016 07:28:24 +0000 (-0500) Subject: hwdb_parser: make sure that our patterns match the full property X-Git-Tag: v233~338^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fe2a2a4f46a87da819c44310e2f12f1db8d7910f;p=thirdparty%2Fsystemd.git hwdb_parser: make sure that our patterns match the full property We would catch stuff like: ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0.0., 0 but not ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 0.0. because the match would stop at the next-to-last char. Fix that by requiring a line end. --- diff --git a/hwdb/parse_hwdb.py b/hwdb/parse_hwdb.py index ec97ed78072..18f13edd0a2 100755 --- a/hwdb/parse_hwdb.py +++ b/hwdb/parse_hwdb.py @@ -123,7 +123,7 @@ def property_grammar(): Word(nums + ':')('VALUE') ] - grammar = Or(fixed_props + kbd_props + abs_props) + grammar = Or(fixed_props + kbd_props + abs_props) + EOL return grammar