diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index f61e45a..1647a89 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -502,7 +502,7 @@ void MainWindow::makePreviews(int page) scaleText.chop(1); QVector wordsToHighlight; - QRegularExpression extractor(R"#("([^"]*)"|(\w+))#"); + QRegularExpression extractor(R"#("([^"]*)"|(\p{L}+))#"); for(const Token &token : this->contentSearchQuery.getTokens()) { if(token.type == FILTER_CONTENT_CONTAINS)