diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-05-16 11:11:26 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-05-16 13:39:01 +0300 |
commit | 2a90a15ec48cca638dab77429e388ec4699d4749 (patch) | |
tree | ffa9e0856deb86f9c5c3a2246eb7f6c0fbb63e03 | |
parent | 8510e7c9588169833c0e2c17f51d6fee437810b6 (diff) |
testpat: fix crtc regexp
-rw-r--r-- | tests/testpat.cpp | 4 |
1 files 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)) |