mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 04:11:16 -05:00
Fix up regexp detecting trailing Q65 decode quality information
This commit is contained in:
parent
197fd6a5ba
commit
74f899677c
@ -437,8 +437,7 @@ void DisplayText::displayDecodedText(DecodedText const& decodedText, QString con
|
||||
{
|
||||
extra += QString {"%1"}.arg (fSpread, 5, 'f', fSpread < 0.95 ? 3 : 2) + QChar {' '};
|
||||
}
|
||||
auto ap_pos = message.lastIndexOf (QRegularExpression {R"((?:\?\s)?a[0-9]$)"});
|
||||
if(ap_pos<0) ap_pos = message.lastIndexOf("q"); //Check for "q" decodes (used in Q65 only)
|
||||
auto ap_pos = message.lastIndexOf (QRegularExpression {R"((?:\?\s)?(?:a[0-9]|q[0-9][0-9*]?)$)"});
|
||||
if (ap_pos >= 0)
|
||||
{
|
||||
extra += message.mid (ap_pos) + QChar {' '};
|
||||
|
Loading…
Reference in New Issue
Block a user