summary refs log tree commit diff
path: root/src/Config.h
diff options
context:
space:
mode:
authortrilene <trilene@runbox.com>2020-07-10 19:39:44 -0400
committertrilene <trilene@runbox.com>2020-07-10 19:39:44 -0400
commitc73cfe181006fe3be8a3f141acda5c8a1318e47a (patch)
tree5232569c34b91653e2fe0e4220e42bd8d3196303 /src/Config.h
parentSupport voice calls (diff)
parentFix autolinking breaking on single quotes in href attribute (diff)
downloadnheko-c73cfe181006fe3be8a3f141acda5c8a1318e47a.tar.xz
Merge remote-tracking branch 'upstream/master' into voip
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 f99cf36b..c0624709 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 vv - // vvvv atomic match url -> fail if there is a " before or after vvv - R"((?<!")(?>((www\.(?!\.)|[a-z][a-z0-9+.-]*://)[^\s<>'"]+[^!,\.\s<>'"\]\)\:]))(?!"))"); + // vvvvvv match quote via negative lookahead/lookbehind vv + // vvvv atomic match url -> fail if there is a " before or after vvv + R"((?<!["'])(?>((www\.(?!\.)|[a-z][a-z0-9+.-]*://)[^\s<>'"]+[^!,\.\s<>'"\]\)\:]))(?!["']))"); } // Window geometry.