strip punctuations around word before searching

This should fix #1337.
This commit is contained in:
chrox
2015-02-01 17:40:34 +08:00
parent 3f691bab93
commit 07586cea71
3 changed files with 13 additions and 3 deletions

View File

@@ -29,6 +29,7 @@ function ReaderSearch:addToMainMenu(tab_item_table)
end
function ReaderSearch:onShowSearchDialog(text)
text = require("util").stripePunctuations(text)
local do_search = function(search_func, text, param)
return function()
local res = search_func(self, text, param)