1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2016-12-10 02:28:24 -05:00
parent 7fdc73afe4
commit fe2a2a4f46

View File

@ -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