mirror of
https://github.com/systemd/systemd.git
synced 2025-09-02 17:49:53 +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:
@ -123,7 +123,7 @@ def property_grammar():
|
|||||||
Word(nums + ':')('VALUE')
|
Word(nums + ':')('VALUE')
|
||||||
]
|
]
|
||||||
|
|
||||||
grammar = Or(fixed_props + kbd_props + abs_props)
|
grammar = Or(fixed_props + kbd_props + abs_props) + EOL
|
||||||
|
|
||||||
return grammar
|
return grammar
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user