mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-04-06 03:18:35 -04:00
Allow for "CQ ABCD ...", up to 4 letters after CQ, when parsing a CQ mesage.
This commit is contained in:
parent
fd02f16970
commit
ecd1afc8b2
@ -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(?<callsign>[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(?<callsign>[A-Z0-9/]{2,})(\s[A-R]{2}[0-9]{2})?)"};
|
||||
return callsign_re.match (message_).captured ("callsign");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user