mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-09-03 21:57:48 -04: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 {' '};
|
extra += QString {"%1"}.arg (fSpread, 5, 'f', fSpread < 0.95 ? 3 : 2) + QChar {' '};
|
||||||
}
|
}
|
||||||
auto ap_pos = message.lastIndexOf (QRegularExpression {R"((?:\?\s)?a[0-9]$)"});
|
auto ap_pos = message.lastIndexOf (QRegularExpression {R"((?:\?\s)?(?:a[0-9]|q[0-9][0-9*]?)$)"});
|
||||||
if(ap_pos<0) ap_pos = message.lastIndexOf("q"); //Check for "q" decodes (used in Q65 only)
|
|
||||||
if (ap_pos >= 0)
|
if (ap_pos >= 0)
|
||||||
{
|
{
|
||||||
extra += message.mid (ap_pos) + QChar {' '};
|
extra += message.mid (ap_pos) + QChar {' '};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user