From 575a5c5a7a07ab9aa1332705ed12b2cd69971581 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 22 Dec 2020 09:42:16 -0500 Subject: [PATCH] Allow 2x1 calls in the "strict_standard_callsign_re" regular expression. --- Radio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Radio.cpp b/Radio.cpp index 79b332fbd..ebb6c6fba 100644 --- a/Radio.cpp +++ b/Radio.cpp @@ -22,7 +22,7 @@ namespace Radio QRegularExpression valid_callsign_regexp {R"(\d[[:alpha:]]|[[:alpha:]]\d)"}; // standard callsign - QRegularExpression strict_standard_callsign_re {R"(^([A-Z][0-9]?|[0-9A-Z][A-Z])[0-9][A-Z]{0,3}$)"}; + QRegularExpression strict_standard_callsign_re {R"(^([A-Z]{1,2}[0-9]?|[0-9A-Z][A-Z])[0-9][A-Z]{0,3}$)"}; // suffixes that are often used and should not be interpreted as a // DXCC Entity prefix used as a suffix