Merge pull request #910 from WS64/master

minor code optimizing
pull/911/head
Huang Xin 10 years ago
commit 0d38a02eb6

@ -2,7 +2,7 @@ local lfs = require("libs/libkoreader-lfs")
local DocSettings = {}
function DocSettings:getHistoryPath(fullpath)
return "./history/[" .. fullpath:gsub("/","#"):gsub("(.*#)([^#]+)","%1] %2") .. ".lua"
return "./history/[" .. fullpath:gsub("(.*/)([^/]+)","%1] %2"):gsub("/","#") .. ".lua"
end
function DocSettings:getPathFromHistory(hist_name)

Loading…
Cancel
Save