Update comments for url.unescape() function.
This commit is contained in:
parent
23ce5aeaa2
commit
9984741d94
1 changed files with 3 additions and 3 deletions
|
@ -64,11 +64,11 @@ local function protect_segment(s)
|
||||||
end
|
end
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- Encodes a string into its escaped hexadecimal representation
|
-- Unencodes a escaped hexadecimal string into its binary representation
|
||||||
-- Input
|
-- Input
|
||||||
-- s: binary string to be encoded
|
-- s: escaped hexadecimal string to be unencoded
|
||||||
-- Returns
|
-- Returns
|
||||||
-- escaped representation of string binary
|
-- unescaped binary representation of escaped hexadecimal binary
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
function _M.unescape(s)
|
function _M.unescape(s)
|
||||||
return (string.gsub(s, "%%(%x%x)", function(hex)
|
return (string.gsub(s, "%%(%x%x)", function(hex)
|
||||||
|
|
Loading…
Add table
Reference in a new issue