Merge branch 'develop' into main
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
tastytea 2019-12-02 16:10:17 +01:00
commit 9706327c37
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -229,7 +229,7 @@ string URI::extract_title(const string &html) const
const RegEx re_htmlfile(".*\\.(.?html?|xml|rss)$", RegEx::RE_CASELESS);
if (_uri.substr(0, 4) == "http" || re_htmlfile.match(_uri))
{
const RegEx re_title("<title>([^<]+)", RegEx::RE_CASELESS);
const RegEx re_title("<title(?: [^>]+)?>([^<]+)", RegEx::RE_CASELESS);
vector<string> matches;
re_title.split(html, matches);
if (matches.size() >= 2)