From b71c234fb4fedea8128d0932d51d6d114371d437 Mon Sep 17 00:00:00 2001 From: Albert S Date: Tue, 14 Jun 2022 10:16:07 +0200 Subject: [PATCH] gui: MainWindow: Also highlight unicode numbers in previews --- gui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index bf342a6..82bf68b 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -544,7 +544,7 @@ void MainWindow::makePreviews(int page) scaleText.chop(1); QVector wordsToHighlight; - QRegularExpression extractor(R"#("([^"]*)"|(\p{L}+))#"); + QRegularExpression extractor(R"#("([^"]*)"|((\p{L}|\p{N})+))#"); for(const Token &token : this->contentSearchQuery.getTokens()) { if(token.type == FILTER_CONTENT_CONTAINS)