feat: cjk regex match

This commit is contained in:
Xiao YiFang 2022-06-04 17:32:33 +08:00
parent 3e05e711e5
commit c3abe99162

View file

@ -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 += "}";