mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Fix typo
This commit is contained in:
parent
7b4e5a2ff7
commit
76c862a773
8
aard.cc
8
aard.cc
|
@ -403,20 +403,20 @@ string AardDictionary::convert( const string & in )
|
|||
"<a href=\"bword:\\2\"");
|
||||
|
||||
// Anchors
|
||||
text.replace( QRegularExpression( "<a\s+href=\"bword:([^#\"]+)#([^\"]+)" ),
|
||||
text.replace( QRegularExpression( "<a\\s+href=\"bword:([^#\"]+)#([^\"]+)" ),
|
||||
"<a href=\"gdlookup://localhost/\\1?gdanchor=\\2" );
|
||||
|
||||
static QRegularExpression self_closing_divs( "(<div\\s+[^>]*)/>",
|
||||
QRegularExpression::CaseInsensitiveOption ); // <div ... />
|
||||
text.replace( self_closing_divs, "\\1></div>" );
|
||||
#else
|
||||
text.replace( QRegExp( "<\\s*a\\s*href\\s*=\\s*\\\"(w:|s:){0,1}([^#](?!ttp://)[^\\\"]*)(.)" ),
|
||||
text.replace( QRegExp( "<\\s*a\\s+href\\s*=\\s*\\\"(w:|s:){0,1}([^#](?!ttp://)[^\\\"]*)(.)" ),
|
||||
"<a href=\"bword:\\2\"");
|
||||
text.replace( QRegExp( "<\\s*a\\s*href\\s*=\\s*'(w:|s:){0,1}([^#](?!ttp://)[^']*)(.)" ),
|
||||
text.replace( QRegExp( "<\\s*a\\s+href\\s*=\\s*'(w:|s:){0,1}([^#](?!ttp://)[^']*)(.)" ),
|
||||
"<a href=\"bword:\\2\"");
|
||||
|
||||
// Anchors
|
||||
text.replace( QRegExp( "<a href=\"bword:([^#\"]+)#([^\"]+)" ),
|
||||
text.replace( QRegExp( "<a\\s+href=\"bword:([^#\"]+)#([^\"]+)" ),
|
||||
"<a href=\"gdlookup://localhost/\\1?gdanchor=\\2" );
|
||||
|
||||
static QRegExp self_closing_divs( "(<div\\s[^>]*)/>", Qt::CaseInsensitive ); // <div ... />
|
||||
|
|
Loading…
Reference in a new issue