mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Other minor frontend.util cleanups (#5629)
* Resync fixUtf8 w/ upstream * Fix lastIndexOf desc * Drop unichar usage, it's a crappier unicodeCodepointToUtf8 ;).
This commit is contained in:
@@ -1116,7 +1116,7 @@ function ReaderHighlight:onHighlightSearch()
|
||||
logger.dbg("search highlight")
|
||||
self:highlightFromHoldPos()
|
||||
if self.selected_text then
|
||||
local text = require("util").stripePunctuations(self.selected_text.text)
|
||||
local text = require("util").stripPunctuation(self.selected_text.text)
|
||||
self.ui:handleEvent(Event:new("ShowSearchDialog", text))
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user