Skip to content

Commit

Permalink
opt: mark exact word
Browse files Browse the repository at this point in the history
  • Loading branch information
YiFang Xiao committed Dec 6, 2023
1 parent 9c5e259 commit 923a462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/articleview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2185,7 +2185,7 @@ void ArticleView::highlightFTSResults()
QString script = QString(
"var context = document.querySelector(\"body\");\n"
"var instance = new Mark(context);\n"
"instance.mark(\"%1\");" )
"instance.mark(\"%1\",{\"accuracy\": \"exactly\"});" )
.arg( regString );

webview->page()->runJavaScript( script );
Expand Down

0 comments on commit 923a462

Please sign in to comment.