Commit 56836ce6 authored by Vojtěch Horký's avatar Vojtěch Horký
Browse files

Add urlencode function

parent 166b1ac7
......@@ -3,3 +3,7 @@
strip_output_whitespace() {
output="$( echo "$output" | sed -e 's#^[ \r]*##' -e 's#[ \r]*$##' )"
}
urlencode() {
python3 -c 'import sys, urllib.parse; print(urllib.parse.quote_plus(sys.argv[1]))' "$1"
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment