1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-15 01:24:29 +02:00

regex fix for infinite loop?

This commit is contained in:
Kelly Brazil
2023-02-04 14:37:03 -08:00
parent 1c09c95c71
commit adf5f403ae

View File

@ -252,7 +252,7 @@ _device_pattern = (
+ r"(?P<is_primary> primary)? ?" + r"(?P<is_primary> primary)? ?"
+ r"((?P<resolution_width>\d+)x(?P<resolution_height>\d+)" + r"((?P<resolution_width>\d+)x(?P<resolution_height>\d+)"
+ r"\+(?P<offset_width>\d+)\+(?P<offset_height>\d+))? " + r"\+(?P<offset_width>\d+)\+(?P<offset_height>\d+))? "
+ r"(?P<rotation>(inverted|left|right))? ?" + r"(?P<rotation>.*?)? ?"
+ 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)?)?"
) )