Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PIM Messagelib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
PIM Messagelib
Commits
c653a7d5
Commit
c653a7d5
authored
Jun 12, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use QRegularExpression
parent
c2f5e4c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
messagecore/src/utils/stringutil.cpp
messagecore/src/utils/stringutil.cpp
+3
-2
No files found.
messagecore/src/utils/stringutil.cpp
View file @
c653a7d5
...
...
@@ -37,6 +37,7 @@
#include <KIdentityManagement/Identity>
#include <QHostInfo>
#include <QRegExp>
#include <QRegularExpression>
#include <QStringList>
#include <QUrlQuery>
#include <kpimtextedit/textutils.h>
...
...
@@ -205,9 +206,9 @@ QString stripSignature(const QString &msg)
{
// Following RFC 3676, only > before --
// I prefer to not delete a SB instead of delete good mail content.
const
QReg
Exp
sbDelimiterSearch
=
QRegExp
(
QLatin1String
(
"(^|
\n
)[> ]*--
\n
"
));
const
QReg
ularExpression
sbDelimiterSearch
(
QStringLiteral
(
"(^|
\n
)[> ]*--
\n
"
));
// The regular expression to look for prefix change
const
QReg
Exp
commonReplySearch
=
QRegExp
(
QLatin1String
(
"^[ ]*>"
));
const
QReg
ularExpression
commonReplySearch
(
QStringLiteral
(
"^[ ]*>"
));
QString
res
=
msg
;
int
posDeletingStart
=
1
;
// to start looking at 0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment