summaryrefslogtreecommitdiffstats
path: root/src/Config.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-05-01 13:33:34 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2019-05-01 13:33:34 +0200
commitc8c0b41527453afcb7db0aab579ea18433771cb2 (patch)
tree14108fbe0e7e7c8bcb2406e714e07740104dc95b /src/Config.h
parent23eef9e1bcbb7a9ada18d55a9198aa13903e571a (diff)
Raw string literals not allowed in MOC headers on OSX
Diffstat (limited to 'src/Config.h')
-rw-r--r--src/Config.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Config.h b/src/Config.h
index 6aebb51b..e1271452 100644
--- a/src/Config.h
+++ b/src/Config.h
@@ -53,9 +53,9 @@ namespace strings {
const QString url_html = "<a href=\"\\1\">\\1</a>";
const QRegularExpression url_regex(
// match an URL, that is not quoted, i.e.
- // vvvvvv match quote via negative lookahead/lookbehind vvvvv
- // vvvv atomic match url -> fail if there is a " before or after vv
- R"regex((?<!")(?>((www\.(?!\.)|[a-z][a-z0-9+.-]*://)[^\s<>'"]+[^!,\.\s<>'"\]\)\:]))(?!"))regex");
+ // vvvvvvv match quote via negative lookahead/lookbehind vvvvvv
+ // vvvv atomic match url -> fail if there is a " before or after vv
+ "(?<!\")(?>((www\\.(?!\\.)|[a-z][a-z0-9+.-]*://)[^\\s<>'\"]+[^!,\\.\\s<>'\"\\]\\)\\:]))(?!\")");
}
// Window geometry.