From 788102d0377fee55e5a3a592dbc53402fc3121df Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sun, 8 Oct 2023 14:25:08 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- src/dict/mdx.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dict/mdx.cc b/src/dict/mdx.cc index 40063c4ad0..e3cb908014 100644 --- a/src/dict/mdx.cc +++ b/src/dict/mdx.cc @@ -908,7 +908,7 @@ void MdxDictionary::replaceLinks( QString & id, QString & article ) QString linkType = allLinksMatch.captured( 1 ).toLower(); QString newLink; - if ( linkType == "a" ) { + if ( linkType == "a" ) { newLink = linkTxt; QRegularExpressionMatch match = RX::Mdx::audioRe.match( newLink ); @@ -956,7 +956,7 @@ void MdxDictionary::replaceLinks( QString & id, QString & article ) else newLink = linkTxt.replace( RX::Mdx::stylesRe2, R"(\1"bres://)" + id + R"(/\2")" ); } - else{ + else { //linkType in ("script","img","source","audio","video") // javascripts and images QRegularExpressionMatch match = RX::Mdx::inlineScriptRe.match( linkTxt );