September 2017 Update

This commit is contained in:
Ingy döt Net 2017-09-23 10:01:46 +02:00
parent bba7bfd280
commit ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions

View file

@ -0,0 +1 @@
"á" | @uri

View file

@ -0,0 +1,9 @@
def url_encode:
# The helper function checks whether the input corresponds to one of the characters: !'()*
def recode: . as $c | [33,39,40,41,42] | index($c);
def hex: if . < 10 then 48 + . else 55 + . end;
@uri
| explode
# 37 ==> "%", 50 ==> "2"
| map( if recode then (37, 50, ((. - 32) | hex)) else . end )
| implode;

View file

@ -0,0 +1 @@
"http://foo bar/" | @uri

View file

@ -0,0 +1 @@
"http://foo bar/" | @uri == url_encode

View file

@ -0,0 +1 @@
[range(0;1024) | [.] | implode | if @uri == . then . else empty end] | join(null)

View file

@ -0,0 +1 @@
[range(0;1024) | [.] | implode | if url_encode == . then . else empty end] | join(null)