mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-28 07:54:06 +00:00
Merge branch 'staged' into dev
This commit is contained in:
commit
fec256da4e
|
@ -44,6 +44,12 @@ static QString makeHiliteRegExpString( QStringList const & words,
|
|||
QString searchString( "(" );
|
||||
|
||||
QString stripWords( "(?:\\W+\\w+){0," );
|
||||
|
||||
if( hasCJK )
|
||||
{
|
||||
stripWords = "(?:[\\W\\w]){0,";
|
||||
}
|
||||
|
||||
if( distanceBetweenWords >= 0 )
|
||||
stripWords += QString::number( distanceBetweenWords );
|
||||
stripWords += "}";
|
||||
|
|
Loading…
Reference in a new issue