From 2a90a15ec48cca638dab77429e388ec4699d4749 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Mon, 16 May 2016 11:11:26 +0300 Subject: [PATCH] testpat: fix crtc regexp --- tests/testpat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testpat.cpp b/tests/testpat.cpp index 37e19b1..a6c4bf9 100644 --- a/tests/testpat.cpp +++ b/tests/testpat.cpp @@ -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)) -- 2.39.2