模块:UrlDecode:修订间差异
来自康健生活
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
local p = {} | |||
local function urlDecode(s) | local function urlDecode(s) | ||
s = string.gsub(s, '%%(%x%x)', function(h) | s = string.gsub(s, '%%(%x%x)', function(h) | ||
| 第5行: | 第6行: | ||
end | end | ||
return urlDecode | function p.url(str) | ||
return urlDecode(str) | |||
end | |||
return p | |||