mirror of
https://github.com/progsource/maddy.git
synced 2026-03-25 07:50:39 +01:00
Fix linkparser line handling with multiple parenthesis
This commit is contained in:
@@ -40,7 +40,7 @@ public:
|
||||
*/
|
||||
void Parse(std::string& line) override
|
||||
{
|
||||
static std::regex re(R"(\[([^\]]*)\]\(([^\]]*)\))");
|
||||
static std::regex re(R"(\[([^\]]*)\]\(([^)]*)\))");
|
||||
static std::string replacement = "<a href=\"$2\">$1</a>";
|
||||
|
||||
line = std::regex_replace(line, re, replacement);
|
||||
|
||||
Reference in New Issue
Block a user