diff options
| author | tony mancill <tmancill@debian.org> | 2019-11-30 16:20:58 -0800 |
|---|---|---|
| committer | tony mancill <tmancill@debian.org> | 2019-11-30 16:20:58 -0800 |
| commit | 08299e8b2bf50ba90daf570f57def529dd29d6e7 (patch) | |
| tree | 475e23eab7be9717383c3c2252cacd8f3c4570c9 /decodedtext.cpp | |
| parent | 3d67be3023bf34eac7f93fa422f5ef569abb92a9 (diff) | |
New upstream version 2.1.2+repackupstream/2.1.2+repack
Diffstat (limited to 'decodedtext.cpp')
| -rw-r--r-- | decodedtext.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/decodedtext.cpp b/decodedtext.cpp index bfa80817..282bb6a3 100644 --- a/decodedtext.cpp +++ b/decodedtext.cpp @@ -10,7 +10,7 @@ extern "C" { namespace { - QRegularExpression words_re {R"(^(?:(?<word1>(?:CQ|DE|QRZ)(?:\s?DX|\s(?:[A-Z]{2}|\d{3}))|[A-Z0-9/]+)\s)(?:(?<word2>[A-Z0-9/]+)(?:\s(?<word3>[-+A-Z0-9]+)(?:\s(?<word4>(?:OOO|(?!RR73)[A-R]{2}[0-9]{2})))?)?)?)"}; + QRegularExpression words_re {R"(^(?:(?<word1>(?:CQ|DE|QRZ)(?:\s?DX|\s(?:[A-Z]{1,4}|\d{3}))|[A-Z0-9/]+|\.{3})\s)(?:(?<word2>[A-Z0-9/]+)(?:\s(?<word3>[-+A-Z0-9]+)(?:\s(?<word4>(?:OOO|(?!RR73)[A-R]{2}[0-9]{2})))?)?)?)"}; } DecodedText::DecodedText (QString const& the_string) @@ -168,11 +168,6 @@ void DecodedText::deCallAndGrid(/*out*/QString& call, QString& grid) const call = match.captured ("word2"); grid = match.captured ("word3"); if ("R" == grid) grid = match.captured ("word4"); - if(match.captured("word1")=="CQ" and call.length()<=4 and !call.contains(QRegExp("[0-9]"))) { - //Second word has length 1-4 and contains no digits - call = match.captured ("word3"); - grid = match.captured ("word4"); - } } unsigned DecodedText::timeInSeconds() const |
