From 457763aa0393a9f11e30071bb3794caf1a4f2f64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 17 Jul 2020 07:44:10 +0200 Subject: [PATCH] hwdb: allow spaces in usb: matches and similar patterns In the past we didn't have any matches like that, so the parser was stricter than necessary, but now we have, so allow that. --- hwdb.d/parse_hwdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwdb.d/parse_hwdb.py b/hwdb.d/parse_hwdb.py index 8e1b5fdafa..c9851ca64c 100755 --- a/hwdb.d/parse_hwdb.py +++ b/hwdb.d/parse_hwdb.py @@ -87,7 +87,7 @@ def hwdb_grammar(): for category, conn in TYPES.items()) matchline_typed = Combine(prefix + Word(printables + ' ' + '®')) - matchline_general = Combine(Or(GENERAL_MATCHES) + ':' + Word(printables)) + matchline_general = Combine(Or(GENERAL_MATCHES) + ':' + Word(printables + ' ' + '®')) matchline = (matchline_typed | matchline_general) + EOL propertyline = (White(' ', exact=1).suppress() +