mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
*! When replacing wiki links' underscores with spaces, don't replace them
in fragment ids (after the # in url).
This commit is contained in:
parent
594f4dd2d0
commit
b2ddf5f2b1
|
@ -250,7 +250,7 @@ void MediaWikiArticleRequest::downloadFinished()
|
|||
for( ; ; )
|
||||
{
|
||||
QString before = articleString;
|
||||
articleString.replace( QRegExp( "<a href=\"([^/:\">]*)_" ), "<a href=\"\\1 " );
|
||||
articleString.replace( QRegExp( "<a href=\"([^/:\">#]*)_" ), "<a href=\"\\1 " );
|
||||
|
||||
if ( articleString == before )
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue