fix merge conflict

This commit is contained in:
Xiao YiFang 2022-07-02 19:13:53 +08:00
commit 4d81b3b9e0

View file

@ -2495,10 +2495,13 @@ void ArticleView::highlightFTSResults()
{ {
const QUrl & url = ui.definition->url(); const QUrl & url = ui.definition->url();
QString regString = Utils::Url::queryItemValue( url, "regexp" );
if( regString.isEmpty() )
return;
bool ignoreDiacritics = Utils::Url::hasQueryItem( url, "ignore_diacritics" ); bool ignoreDiacritics = Utils::Url::hasQueryItem( url, "ignore_diacritics" );
QString regString = Utils::Url::queryItemValue( url, "regexp" ); if( ignoreDiacritics )
if( ignoreDiacritics )
regString = gd::toQString( Folding::applyDiacriticsOnly( gd::toWString( regString ) ) ); regString = gd::toQString( Folding::applyDiacriticsOnly( gd::toWString( regString ) ) );
else else
regString = regString.remove( AccentMarkHandler::accentMark() ); regString = regString.remove( AccentMarkHandler::accentMark() );