mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
Gls: Handle "qrcx://..." image links
This commit is contained in:
parent
022682a4f9
commit
375a3c258b
2
gls.cc
2
gls.cc
|
@ -809,7 +809,7 @@ void GlsDictionary::loadArticle( uint32_t address,
|
|||
|
||||
QString & GlsDictionary::filterResource( QString & article )
|
||||
{
|
||||
QRegExp imgRe( "(<\\s*img\\s+[^>]*src\\s*=\\s*[\"']+)(?!(?:data|https?|ftp):)", Qt::CaseInsensitive );
|
||||
QRegExp imgRe( "(<\\s*img\\s+[^>]*src\\s*=\\s*[\"']+)(?!(?:data|https?|ftp|qrcx):)", Qt::CaseInsensitive );
|
||||
imgRe.setMinimal( true );
|
||||
QRegExp linkRe( "(<\\s*link\\s+[^>]*href\\s*=\\s*[\"']+)(?!(?:data|https?|ftp):)", Qt::CaseInsensitive );
|
||||
linkRe.setMinimal( true );
|
||||
|
|
Loading…
Reference in a new issue