Files
zenbones-theme/lua/zenbones/util.lua

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
190 B
Lua
Raw Normal View History

2021-09-21 16:47:35 +08:00
local M = {}
-- got from http://lua-users.org/wiki/StringInterpolation
function M.interp(s, tab)
return (s:gsub("($%b{})", function(w)
return tab[w:sub(3, -2)] or w
end))
end
return M