summaryrefslogtreecommitdiff
path: root/hwdb/parse_hwdb.py
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-12-10 02:28:24 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-12-10 02:28:24 -0500
commitfe2a2a4f46a87da819c44310e2f12f1db8d7910f (patch)
treeec513df0c22a8be695ac751664b9fb7570c65297 /hwdb/parse_hwdb.py
parent7fdc73afe4729dec48577e9d47491289a545f0e7 (diff)
downloadsystemd-fe2a2a4f46a87da819c44310e2f12f1db8d7910f.tar.gz
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.
Diffstat (limited to 'hwdb/parse_hwdb.py')
-rwxr-xr-xhwdb/parse_hwdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwdb/parse_hwdb.py b/hwdb/parse_hwdb.py
index ec97ed7807..18f13edd0a 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