mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
MDict: Fix handling of links with '/' symbol (issue #771)
This commit is contained in:
parent
c689487614
commit
f0256b2b18
2
mdx.cc
2
mdx.cc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue