From b7238399ea4f1ca51d8f7b8f9220af3da0913edf Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Mon, 29 Apr 2019 22:08:59 +0200 Subject: New upstream version 2.1.0~rc5+repack --- decodedtext.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'decodedtext.cpp') diff --git a/decodedtext.cpp b/decodedtext.cpp index 88f6bd62..bfa80817 100644 --- a/decodedtext.cpp +++ b/decodedtext.cpp @@ -51,11 +51,12 @@ DecodedText::DecodedText (QString const& the_string) QStringList DecodedText::messageWords () const { - if (is_standard_) - { - // extract up to the first four message words - return words_re.match (message_).capturedTexts (); - } + if(is_standard_) { + // extract up to the first four message words + QString t=message_; + if(t.left(4)=="TU; ") t=message_.mid(4,-1); + return words_re.match(t).capturedTexts(); + } // simple word split for free text messages auto words = message_.split (' ', QString::SkipEmptyParts); // add whole message as item 0 to mimic RE capture list -- cgit v1.2.3