[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2023-10-08 15:36:55 +00:00 committed by GitHub
parent 7ec51d9453
commit e3f6a2849c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 );