mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Raw string literals not allowed in MOC headers on OSX
This commit is contained in:
parent
23eef9e1bc
commit
c8c0b41527
1 changed files with 3 additions and 3 deletions
|
@ -53,9 +53,9 @@ namespace strings {
|
||||||
const QString url_html = "<a href=\"\\1\">\\1</a>";
|
const QString url_html = "<a href=\"\\1\">\\1</a>";
|
||||||
const QRegularExpression url_regex(
|
const QRegularExpression url_regex(
|
||||||
// match an URL, that is not quoted, i.e.
|
// match an URL, that is not quoted, i.e.
|
||||||
// vvvvvv match quote via negative lookahead/lookbehind vvvvv
|
// vvvvvvv match quote via negative lookahead/lookbehind vvvvvv
|
||||||
// vvvv atomic match url -> fail if there is a " before or after vv
|
// vvvv atomic match url -> fail if there is a " before or after vv
|
||||||
R"regex((?<!")(?>((www\.(?!\.)|[a-z][a-z0-9+.-]*://)[^\s<>'"]+[^!,\.\s<>'"\]\)\:]))(?!"))regex");
|
"(?<!\")(?>((www\\.(?!\\.)|[a-z][a-z0-9+.-]*://)[^\\s<>'\"]+[^!,\\.\\s<>'\"\\]\\)\\:]))(?!\")");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Window geometry.
|
// Window geometry.
|
||||||
|
|
Loading…
Reference in a new issue