mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 03:14:06 +00:00
opt:website tag regex expression refine
This commit is contained in:
parent
dd244e0336
commit
2298fa2a3d
|
@ -54,7 +54,7 @@ void IframeSchemeHandler::requestStarted(QWebEngineUrlRequestJob *requestJob)
|
||||||
// remove existed base tag
|
// remove existed base tag
|
||||||
articleString.remove( baseTag ) ;
|
articleString.remove( baseTag ) ;
|
||||||
|
|
||||||
QRegularExpression headTag( "<head\\s+.*?>",
|
QRegularExpression headTag( "<head\\b.*?>",
|
||||||
QRegularExpression::CaseInsensitiveOption
|
QRegularExpression::CaseInsensitiveOption
|
||||||
| QRegularExpression::DotMatchesEverythingOption );
|
| QRegularExpression::DotMatchesEverythingOption );
|
||||||
auto match = headTag.match( articleString, 0 );
|
auto match = headTag.match( articleString, 0 );
|
||||||
|
|
Loading…
Reference in a new issue