Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/URL-decoding/Lambdatalk/url-decoding.lambdatalk
Normal file
10
Task/URL-decoding/Lambdatalk/url-decoding.lambdatalk
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
1) define a new javascript primitive:
|
||||
{script
|
||||
LAMBDATALK.DICT['decodeURIComponent'] = function() {
|
||||
return decodeURIComponent( arguments[0].trim() );
|
||||
};
|
||||
}
|
||||
|
||||
2) and use it:
|
||||
{decodeURIComponent http%3A%2F%2Ffoo%20bar%2F}
|
||||
-> http://foo bar/
|
||||
Loading…
Add table
Add a link
Reference in a new issue