summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-04-24 14:31:59 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-04-24 14:32:24 +0200
commit72d74ac59fa6c5c26b738b8eeefff319c249780f (patch)
treeb125ae5e0ce9ba205761e7840142c69e9ba9bad6 /src
parentFix completions in plain text mode (diff)
downloadnheko-72d74ac59fa6c5c26b738b8eeefff319c249780f.tar.xz
Fix rendering issues with ) in links
Diffstat (limited to 'src')
-rw-r--r--src/Config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Config.h b/src/Config.h

index 97669822..88452935 100644 --- a/src/Config.h +++ b/src/Config.h
@@ -59,7 +59,7 @@ 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<>'"\]\)\:]))(?!["']))"); + R"(\b(?<!["'])(?>((www\.(?!\.)|[a-z][a-z0-9+.-]*://)[^\s'"]+[^!,\.\s'"\]\)\:]))(?!["'])\b)"); // match any markdown matrix.to link. Capture group 1 is the link name, group 2 is the target. static const QRegularExpression matrixToMarkdownLink( R"(\[(.*?)(?<!\\)\]\((https://matrix.to/#/.*?\)))");