mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00: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
|
||||
articleString.remove( baseTag ) ;
|
||||
|
||||
QRegularExpression headTag( "<head\\s+.*?>",
|
||||
QRegularExpression headTag( "<head\\b.*?>",
|
||||
QRegularExpression::CaseInsensitiveOption
|
||||
| QRegularExpression::DotMatchesEverythingOption );
|
||||
auto match = headTag.match( articleString, 0 );
|
||||
|
|
Loading…
Reference in a new issue