From 375a3c258be1dc8da652d1640133ff0e2cc58790 Mon Sep 17 00:00:00 2001 From: Abs62 Date: Thu, 22 Jun 2017 18:00:18 +0300 Subject: [PATCH] Gls: Handle "qrcx://..." image links --- gls.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gls.cc b/gls.cc index d9bd731e..9e485529 100644 --- a/gls.cc +++ b/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 );