Skip to content

Commit

Permalink
Merge branch 'AA5SH_WSJTXRegexp' into testing_0.39
Browse files Browse the repository at this point in the history
  • Loading branch information
foldynl committed Sep 24, 2024
2 parents 874efca + de6f208 commit 514f25c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/WsjtxWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ MODULE_IDENTIFICATION("qlog.ui.wsjtxswidget");
WsjtxWidget::WsjtxWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::WsjtxWidget),
cqRE("^CQ (DX |TEST |[A-Z]{0,2} )?([A-Z0-9\\/]+) ?([A-Z]{2}[0-9]{2})?.*")
cqRE("(^(?:(?P<word1>(?:CQ|DE|QRZ)(?:\\s?DX|\\s(?:[A-Z]{1,4}|\\d{3}))|[A-Z0-9\\/]+|\\.{3})\\s)(?:(?P<word2>[A-Z0-9\\/]+)(?:\\s(?P<word3>[-+A-Z0-9]+)(?:\\s(?P<word4>(?:OOO|(?!RR73)[A-R]{2}[0-9]{2})))?)?)?)")
{
FCT_IDENTIFICATION;

Expand Down Expand Up @@ -64,8 +64,8 @@ void WsjtxWidget::decodeReceived(WsjtxDecode decode)
WsjtxEntry entry;

entry.decode = decode;
entry.callsign = match.captured(2);
entry.grid = match.captured(3);
entry.callsign = match.captured(3);
entry.grid = match.captured(4);
entry.dxcc = Data::instance()->lookupDxcc(entry.callsign);
entry.status = Data::instance()->dxccStatus(entry.dxcc.dxcc, currBand, BandPlan::MODE_GROUP_STRING_DIGITAL);
entry.receivedTime = QDateTime::currentDateTimeUtc();
Expand Down

0 comments on commit 514f25c

Please sign in to comment.