Gls: Handle "qrcx://..." image links

This commit is contained in:
Abs62 2017-06-22 18:00:18 +03:00
parent 022682a4f9
commit 375a3c258b

2
gls.cc
View file

@ -809,7 +809,7 @@ void GlsDictionary::loadArticle( uint32_t address,
QString & GlsDictionary::filterResource( QString & article ) 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 ); imgRe.setMinimal( true );
QRegExp linkRe( "(<\\s*link\\s+[^>]*href\\s*=\\s*[\"']+)(?!(?:data|https?|ftp):)", Qt::CaseInsensitive ); QRegExp linkRe( "(<\\s*link\\s+[^>]*href\\s*=\\s*[\"']+)(?!(?:data|https?|ftp):)", Qt::CaseInsensitive );
linkRe.setMinimal( true ); linkRe.setMinimal( true );