MDict: Fix handling of links with '/' symbol (issue #771)

This commit is contained in:
Abs62 2016-11-01 19:19:08 +03:00
parent c689487614
commit f0256b2b18

2
mdx.cc
View file

@ -992,7 +992,7 @@ QString & MdxDictionary::filterResource( QString const & articleId, QString & ar
QRegExp anchorLinkRe( "(<\\s*a\\s+[^>]*\\b(?:name|id)\\b\\s*=\\s*[\"']*)(?=[^\"'])", Qt::CaseInsensitive );
anchorLinkRe.setMinimal( true );
QRegExp wordCrossLink( "(href\\s*=\\s*[\"'])entry://([^#\"'/]+)(#?[^\"']*)", Qt::CaseInsensitive );
QRegExp wordCrossLink( "(href\\s*=\\s*[\"'])entry://([^#\"']+)(#?[^\"']*)", Qt::CaseInsensitive );
article = article
// anchors