mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 03:14:06 +00:00
fix: use more meaningful tag name
This commit is contained in:
parent
6f9fa8eaa7
commit
7ec51d9453
|
@ -960,7 +960,8 @@ void MdxDictionary::replaceLinks( QString & id, QString & article )
|
|||
//linkType in ("script","img","source","audio","video")
|
||||
// javascripts and images
|
||||
QRegularExpressionMatch match = RX::Mdx::inlineScriptRe.match( linkTxt );
|
||||
if ( linkType.at( 1 ) == 'c' // "script" tag
|
||||
// "script" tag
|
||||
if ( linkType.compare( "script" ) == 0
|
||||
&& match.hasMatch() && match.capturedLength() == linkTxt.length() ) {
|
||||
// skip inline scripts
|
||||
articleNewText += linkTxt;
|
||||
|
|
Loading…
Reference in a new issue