testpat: fix crtc regexp
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 16 May 2016 08:11:26 +0000 (11:11 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 16 May 2016 10:39:01 +0000 (13:39 +0300)
tests/testpat.cpp

index 37e19b1d9af0856f84679038d9ee73116b360f0e..a6c4bf94dfc36fcbe743e8a784dec012bdc69e62 100644 (file)
@@ -119,8 +119,8 @@ static void get_default_crtc(Card& card, OutputInfo& output)
 
 static void parse_crtc(Card& card, const string& crtc_str, OutputInfo& output)
 {
-       // @12:1920x1200-60
-       const regex mode_re("(?:(@?)(\\d+):)?(?:(\\d+)x(\\d+)(i)?)(?:-(\\d+))?");
+       // @12:1920x1200@60
+       const regex mode_re("(?:(@?)(\\d+):)?(?:(\\d+)x(\\d+)(i)?)(?:@(\\d+))?");
 
        smatch sm;
        if (!regex_match(crtc_str, sm, mode_re))