get things to build on centos7.5 (cosmetic changes)

This commit is contained in:
Jean-Francois Dockes
2018-09-02 18:47:03 +02:00
parent 433430dfe6
commit 8358742132
3 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -155,10 +155,11 @@ bool TextSplitPTR::matchGroups()
// for validating, or catching things which are probably urls but miss
// a scheme (e.g. www.xxx.com/index.html), because complicated.
static const string urlRE = "(https?://[[:alnum:]~_/.%?&=,#@]+)[[:space:]|]";
static const string urlRep{"<a href=\"$1\">$1</a>"};
static std::regex url_re(urlRE);
static string activate_urls(const string& in)
{
return std::regex_replace(in, url_re, "<a href=\"$1\">$1</a>");
return std::regex_replace(in, url_re, urlRep);
}
// Fix result text for display inside the gui text window.