diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-02-04 05:19:55 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-02-04 05:19:55 +0100 |
commit | 7dab4d39eeeb66e1b58dcaae6a013cac0aa6a7d0 (patch) | |
tree | 9db61c93835b1f8a59a76512c68633c32e5594ed /src/Config.h | |
parent | modernize: use nullptr (diff) | |
download | nheko-7dab4d39eeeb66e1b58dcaae6a013cac0aa6a7d0.tar.xz |
modernize: raw string literals
Diffstat (limited to '')
-rw-r--r-- | src/Config.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Config.h b/src/Config.h index e1271452..f99cf36b 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. - // 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<>'\"\\]\\)\\:]))(?!\")"); + // 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. |