diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-07-09 01:17:59 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-07-09 01:17:59 +0200 |
commit | 7c51cc475b7cd3098f675fd9c3e23ce380ddb891 (patch) | |
tree | 070b9e4e541b0e9f712e3c1a9ef816f7b6ea2ee0 | |
parent | fc911add58c97b878b5b2eff867ce35216eb2a1e (diff) | |
download | MultiMC-7c51cc475b7cd3098f675fd9c3e23ce380ddb891.tar MultiMC-7c51cc475b7cd3098f675fd9c3e23ce380ddb891.tar.gz MultiMC-7c51cc475b7cd3098f675fd9c3e23ce380ddb891.tar.lz MultiMC-7c51cc475b7cd3098f675fd9c3e23ce380ddb891.tar.xz MultiMC-7c51cc475b7cd3098f675fd9c3e23ce380ddb891.zip |
Better regexp for links
-rw-r--r-- | gui/dialogs/UpdateDialog.cpp | 2 |
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) |