Merge branch 'develop' into main
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
commit
9706327c37
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user