mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +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
|
// javascripts and images
|
||||||
QRegularExpressionMatch match = RX::Mdx::inlineScriptRe.match( linkTxt );
|
QRegularExpressionMatch match = RX::Mdx::inlineScriptRe.match( linkTxt );
|
||||||
// "script" tag
|
// "script" tag
|
||||||
if ( linkType.compare( "script" ) == 0
|
if ( linkType.compare( "script" ) == 0 && match.hasMatch() && match.capturedLength() == linkTxt.length() ) {
|
||||||
&& match.hasMatch() && match.capturedLength() == linkTxt.length() ) {
|
|
||||||
// skip inline scripts
|
// skip inline scripts
|
||||||
articleNewText += linkTxt;
|
articleNewText += linkTxt;
|
||||||
match = RX::Mdx::closeScriptTagRe.match( article, linkPos );
|
match = RX::Mdx::closeScriptTagRe.match( article, linkPos );
|
||||||
|
|
Loading…
Reference in a new issue