mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
7ec51d9453
commit
e3f6a2849c
|
@ -961,8 +961,7 @@ void MdxDictionary::replaceLinks( QString & id, QString & article )
|
|||
// javascripts and images
|
||||
QRegularExpressionMatch match = RX::Mdx::inlineScriptRe.match( linkTxt );
|
||||
// "script" tag
|
||||
if ( linkType.compare( "script" ) == 0
|
||||
&& match.hasMatch() && match.capturedLength() == linkTxt.length() ) {
|
||||
if ( linkType.compare( "script" ) == 0 && match.hasMatch() && match.capturedLength() == linkTxt.length() ) {
|
||||
// skip inline scripts
|
||||
articleNewText += linkTxt;
|
||||
match = RX::Mdx::closeScriptTagRe.match( article, linkPos );
|
||||
|
|
Loading…
Reference in a new issue