Skip to content
Snippets Groups Projects
Commit c8c0b415 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Raw string literals not allowed in MOC headers on OSX

parent 23eef9e1
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment