From adf5f403ae10248328857954d909422ddcae1a5d Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Sat, 4 Feb 2023 14:37:03 -0800 Subject: [PATCH] regex fix for infinite loop? --- jc/parsers/xrandr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jc/parsers/xrandr.py b/jc/parsers/xrandr.py index 89f55981..1a799d46 100644 --- a/jc/parsers/xrandr.py +++ b/jc/parsers/xrandr.py @@ -252,7 +252,7 @@ _device_pattern = ( + r"(?P primary)? ?" + r"((?P\d+)x(?P\d+)" + r"\+(?P\d+)\+(?P\d+))? " - + r"(?P(inverted|left|right))? ?" + + r"(?P.*?)? ?" + r"\(normal left inverted right x axis y axis\)" + r"( ((?P\d+)mm x (?P\d+)mm)?)?" )