aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-01-03 11:14:47 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-01-03 11:24:12 +0100
commitcf79e6c473e8d840aee32922cdc5efb00aa67900 (patch)
treeaa912afd3dfb588c23145996b23233fdeb14811d
parentb1b7ed83eda50e3147d363f1e4f1dab3191c4b3f (diff)
global-functions: do not encode dash, dot, slash and underscore
-rw-r--r--global-functions7
1 files changed, 3 insertions, 4 deletions
diff --git a/global-functions b/global-functions
index 45b76d2..611241f 100644
--- a/global-functions
+++ b/global-functions
@@ -39,11 +39,10 @@
:local Return "";
:if ([ :len $Input ] > 0) do={
- :local Chars " !\"#\$%&'()*+,-./:;<=>\?@[\\]^_`{|}~";
+ :local Chars " !\"#\$%&'()*+,:;<=>\?@[\\]^`{|}~";
:local Subs { "%20"; "%21"; "%22"; "%23"; "%24"; "%25"; "%26"; "%27"; "%28"; "%29";
- "%2A"; "%2B"; "%2C"; "%2D"; "%2E"; "%2F"; "%3A"; "%3B"; "%3C"; "%3D";
- "%3E"; "%3F"; "%40"; "%5B"; "%5C"; "%5D"; "%5E"; "%5F"; "%60"; "%7B";
- "%7C"; "%7D"; "%7E" };
+ "%2A"; "%2B"; "%2C"; "%3A"; "%3B"; "%3C"; "%3D"; "%3E"; "%3F"; "%40";
+ "%5B"; "%5C"; "%5D"; "%5E"; "%60"; "%7B"; "%7C"; "%7D"; "%7E" };
:for I from=0 to=([ :len $Input ] - 1) do={
:local Char [ :pick $Input $I ];