Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/URL-decoding/Langur/url-decoding.langur
Normal file
5
Task/URL-decoding/Langur/url-decoding.langur
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
val .helper = f(.s) b2s map f toNumber(.x, 16), rest split "%", .s
|
||||
val .decode = f(.s) replace .s, re/(%[0-9A-Fa-f]{2})+/, .helper
|
||||
|
||||
writeln .decode("http%3A%2F%2Ffoo%20bar%2F")
|
||||
writeln .decode("google.com/search?q=%60Abdu%27l-Bah%C3%A1")
|
||||
Loading…
Add table
Add a link
Reference in a new issue