summary refs log tree commit diff
path: root/src/Config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Config.h')
-rw-r--r--src/Config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Config.h b/src/Config.h

index d3fee836..97669822 100644 --- a/src/Config.h +++ b/src/Config.h
@@ -60,6 +60,10 @@ const QRegularExpression url_regex( // 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<>'"\]\)\:]))(?!["']))"); +// 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/#/.*?\)))"); +static const QRegularExpression matrixToLink(R"(<a href=\"(https://matrix.to/#/.*?)\">(.*?)</a>)"); } // Window geometry.