mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
only strip punctuations when highlight to search
This should fix #1419.
This commit is contained in:
@@ -468,7 +468,8 @@ function ReaderHighlight:onHighlightSearch()
|
||||
DEBUG("search highlight")
|
||||
self:highlightFromHoldPos()
|
||||
if self.selected_text then
|
||||
self.ui:handleEvent(Event:new("ShowSearchDialog", self.selected_text.text))
|
||||
local text = require("util").stripePunctuations(self.selected_text.text)
|
||||
self.ui:handleEvent(Event:new("ShowSearchDialog", text))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user