[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:22:41 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=ea182d2
The following commit has been merged in the master branch:
commit ea182d2028ee0be602dc8d3f5709385c93ff8df8
Author: Daniele E. Domenichelli <daniele.domenichelli at gmail.com>
Date: Fri Sep 21 09:28:34 2012 +0200
Add comment to the Format Filter regexp
---
filters/formatting/format-filter.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/filters/formatting/format-filter.cpp b/filters/formatting/format-filter.cpp
index 2eaf2c8..8c29ad4 100644
--- a/filters/formatting/format-filter.cpp
+++ b/filters/formatting/format-filter.cpp
@@ -40,6 +40,14 @@ FormatFilter::FormatFilter (QObject* parent, const QVariantList&) :
AbstractMessageFilter (parent),
d(new Private())
{
+ // Matches a string
+ // 1. The beginning of the string or a white character [ (^|\s) ]
+ // 2. Depending on the regexp the tag to be replaced or a pattern including
+ // all the tags in tagsMap [ %1 ]
+ // 3. One non-whitespace character, or by any string that starts and ends
+ // with a non-whitespace character [ (\S|\S.*\S) ]
+ // 4. Same as 2. [ %1 ]
+ // 5. A white character or the end of the string [ (\s|$) ]
d->mainPattern = QLatin1String("(^|\s)%1(\S|\S.*\S)%1(\s|$)");
QMap<QString, QString> tagsMap;
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list