Fix the regular expression to allow for "CQ TEST ...", etc.

This commit is contained in:
Joe Taylor 2018-09-26 15:51:43 -04:00
parent 691476ed1c
commit 7c5b2e688d
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ QStringList DecodedText::messageWords () const
QString DecodedText::CQersCall() const
{
QRegularExpression callsign_re {R"(^(CQ|DE|QRZ)(\s?DX|\s([A-Z]{2}|\d{3}))?\s(?<callsign>[A-Z0-9/]{2,})(\s[A-R]{2}[0-9]{2})?)"};
QRegularExpression callsign_re {R"(^(CQ|DE|QRZ)(\s?DX|\s([A-Z]{4}|\d{3}))?\s(?<callsign>[A-Z0-9/]{2,})(\s[A-R]{2}[0-9]{2})?)"};
return callsign_re.match (message_).captured ("callsign");
}