diff options
| author | Christoph Berg <myon@debian.org> | 2019-04-29 22:08:59 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2019-04-29 22:08:59 +0200 |
| commit | b7238399ea4f1ca51d8f7b8f9220af3da0913edf (patch) | |
| tree | 9716c5c0a793b2f7cda83e9d8f840095a0e9358e /decodedtext.cpp | |
| parent | 200de07a95209a55d6019ba87f0abc78d302bf4c (diff) | |
New upstream version 2.1.0~rc5+repackupstream/2.1.0_rc5+repack
Diffstat (limited to 'decodedtext.cpp')
| -rw-r--r-- | decodedtext.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
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 |
