summaryrefslogtreecommitdiff
path: root/decodedtext.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2019-04-29 22:12:59 +0200
committerChristoph Berg <myon@debian.org>2019-04-29 22:12:59 +0200
commit70daed33540f3e59a0b1ade23054227162bb94b5 (patch)
treed7b37965eb45dcee3d6779dfe4c89765a413ee9a /decodedtext.cpp
parent3f82cbb91d23747acad17055a738fa6aa9f0d30b (diff)
parentb7238399ea4f1ca51d8f7b8f9220af3da0913edf (diff)
Update upstream source from tag 'upstream/2.1.0_rc5+repack'
Update to upstream version '2.1.0~rc5+repack' with Debian dir 17b49a173603ba3f07a69dd6bec92e144d341596
Diffstat (limited to 'decodedtext.cpp')
-rw-r--r--decodedtext.cpp11
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