模块:Interp:修订间差异

来自「荏苒之境」
创建页面,内容为“return function(s, tab) local result = s:gsub('($%b{})', function(w) return tab[w:sub(3, -2)] or w end) return result end”
 
Sicusa移动页面模块:Interp.lua模块:Interp,不留重定向
 
(未显示同一用户的1个中间版本)
第3行: 第3行:
return tab[w:sub(3, -2)] or w
return tab[w:sub(3, -2)] or w
end)
end)
    return result
return result
end
end

2025年8月7日 (四) 23:35的最新版本

此模块的文档可以在模块:Interp/doc创建

return function(s, tab)
	local result = s:gsub('($%b{})', function(w)
		return tab[w:sub(3, -2)] or w
	end)
	return result
end