1
0
Fork 0

Merge pull request #216 from olysonek/udev-matcher-fix

Use re.DOTALL in the udev device matcher
This commit is contained in:
Jaroslav Škarvada 2019-11-22 15:43:21 +01:00 committed by GitHub
commit 46c8ea434d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,4 +21,4 @@ class DeviceMatcherUdev(device_matcher.DeviceMatcher):
for key, val in list(items):
properties += key + '=' + val + '\n'
return re.search(regex, properties, re.MULTILINE) is not None
return re.search(regex, properties, re.MULTILINE | re.DOTALL) is not None