mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-07-03 10:25:15 -04:00
Fix the regular expression to allow for "CQ TEST ...", etc.
This commit is contained in:
parent
691476ed1c
commit
7c5b2e688d
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user