gui: mainwindow: Use Unicode category class to extract highlight words

这个提交包含在:
Albert S. 2022-06-05 23:37:23 +02:00
父节点 61fa7ca16d
当前提交 f8d6a1a586

查看文件

@ -502,7 +502,7 @@ void MainWindow::makePreviews(int page)
scaleText.chop(1);
QVector<QString> wordsToHighlight;
QRegularExpression extractor(R"#("([^"]*)"|(\w+))#");
QRegularExpression extractor(R"#("([^"]*)"|(\p{L}+))#");
for(const Token &token : this->contentSearchQuery.getTokens())
{
if(token.type == FILTER_CONTENT_CONTAINS)