From 7c51cc475b7cd3098f675fd9c3e23ce380ddb891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 9 Jul 2014 01:17:59 +0200 Subject: [PATCH] Better regexp for links --- gui/dialogs/UpdateDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("\\[(.+)\\]\\((.+)\\)"), "\\1"); + line.replace(QRegExp("\\[([^\\]]+)\\]\\(([^\\)]+)\\)"), "\\1"); return line; }; for(auto line: lines)