diff --git a/ftshelpers.cc b/ftshelpers.cc index e1b51641..2ac57cba 100644 --- a/ftshelpers.cc +++ b/ftshelpers.cc @@ -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 += "}";