Skip to content

Commit

Permalink
fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Jul 2, 2022
2 parents 9f5218b + d8d3002 commit 4d81b3b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions articleview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2495,10 +2495,13 @@ void ArticleView::highlightFTSResults()
{
const QUrl & url = ui.definition->url();

bool ignoreDiacritics = Utils::Url::hasQueryItem( url, "ignore_diacritics" );

QString regString = Utils::Url::queryItemValue( url, "regexp" );
if( ignoreDiacritics )
if( regString.isEmpty() )
return;

bool ignoreDiacritics = Utils::Url::hasQueryItem( url, "ignore_diacritics" );

if( ignoreDiacritics )
regString = gd::toQString( Folding::applyDiacriticsOnly( gd::toWString( regString ) ) );
else
regString = regString.remove( AccentMarkHandler::accentMark() );
Expand Down

0 comments on commit 4d81b3b

Please sign in to comment.