模块:Interp.lua:修订间差异

来自「荏苒之境」
创建页面,内容为“return function(s, tab) local result = s:gsub('($%b{})', function(w) return tab[w:sub(3, -2)] or w end) return result end”
 
无编辑摘要
 
第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年7月30日 (三) 12:13的最新版本

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

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