From ecd1afc8b2c0b3cdc631ca1884af161e7569ff5f Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Thu, 27 Sep 2018 14:26:03 -0400 Subject: [PATCH] Allow for "CQ ABCD ...", up to 4 letters after CQ, when parsing a CQ mesage. --- decodedtext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decodedtext.cpp b/decodedtext.cpp index 3468897b0..5970080d2 100644 --- a/decodedtext.cpp +++ b/decodedtext.cpp @@ -64,7 +64,7 @@ QStringList DecodedText::messageWords () const QString DecodedText::CQersCall() const { - QRegularExpression callsign_re {R"(^(CQ|DE|QRZ)(\s?DX|\s([A-Z]{4}|\d{3}))?\s(?[A-Z0-9/]{2,})(\s[A-R]{2}[0-9]{2})?)"}; + QRegularExpression callsign_re {R"(^(CQ|DE|QRZ)(\s?DX|\s([A-Z]{2,4}|\d{3}))?\s(?[A-Z0-9/]{2,})(\s[A-R]{2}[0-9]{2})?)"}; return callsign_re.match (message_).captured ("callsign"); }