1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

update _device_pattern regex for Freezing with 100% CPU when parsing Xrandr output - 1.23.6 #490

This commit is contained in:
Kelly Brazil
2023-12-09 17:01:03 -08:00
parent 2630049ab7
commit a9ba98847c

View File

@ -346,8 +346,8 @@ _device_pattern = (
+ r"\+(?P<offset_width>\d+)\+(?P<offset_height>\d+))? " + r"\+(?P<offset_width>\d+)\+(?P<offset_height>\d+))? "
+ r"(?P<rotation>(normal|right|left|inverted)?) ?" + r"(?P<rotation>(normal|right|left|inverted)?) ?"
+ r"(?P<reflection>(X axis|Y axis|X and Y axis)?) ?" + r"(?P<reflection>(X axis|Y axis|X and Y axis)?) ?"
+ r"\(normal left inverted right x axis y axis\)" + r"(\(normal left inverted right x axis y axis\))?"
+ r"( ((?P<dimension_width>\d+)mm x (?P<dimension_height>\d+)mm)?)?" + r"( ?((?P<dimension_width>\d+)mm x (?P<dimension_height>\d+)mm)?)?"
) )