summaryrefslogtreecommitdiffstats
path: root/gui/dialogs/UpdateDialog.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-07-09 01:17:59 +0200
committerPetr Mrázek <peterix@gmail.com>2014-07-09 01:17:59 +0200
commit7c51cc475b7cd3098f675fd9c3e23ce380ddb891 (patch)
tree070b9e4e541b0e9f712e3c1a9ef816f7b6ea2ee0 /gui/dialogs/UpdateDialog.cpp
parentfc911add58c97b878b5b2eff867ce35216eb2a1e (diff)
downloadMultiMC-7c51cc475b7cd3098f675fd9c3e23ce380ddb891.tar
MultiMC-7c51cc475b7cd3098f675fd9c3e23ce380ddb891.tar.gz
MultiMC-7c51cc475b7cd3098f675fd9c3e23ce380ddb891.tar.lz
MultiMC-7c51cc475b7cd3098f675fd9c3e23ce380ddb891.tar.xz
MultiMC-7c51cc475b7cd3098f675fd9c3e23ce380ddb891.zip
Better regexp for links
Diffstat (limited to 'gui/dialogs/UpdateDialog.cpp')
-rw-r--r--gui/dialogs/UpdateDialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/dialogs/UpdateDialog.cpp b/gui/dialogs/UpdateDialog.cpp
index 3194208f..f48d3765 100644
--- a/gui/dialogs/UpdateDialog.cpp
+++ b/gui/dialogs/UpdateDialog.cpp
@@ -43,7 +43,7 @@ QString reprocessMarkdown(QString markdown)
auto procLine = [&](QString line) -> QString
{
// [GitHub issues](https://github.com/MultiMC/MultiMC5/issues)
- line.replace(QRegExp("\\[(.+)\\]\\((.+)\\)"), "<a href=\"\\2\">\\1</a>");
+ line.replace(QRegExp("\\[([^\\]]+)\\]\\(([^\\)]+)\\)"), "<a href=\"\\2\">\\1</a>");
return line;
};
for(auto line: lines)