opt: mark exact word

This commit is contained in:
YiFang Xiao 2023-12-06 14:29:59 +08:00
parent 9c5e25971b
commit 923a46217b

View file

@ -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 );