krebs lib.shell.escape: add safe chars: +:=

This commit is contained in:
tv 2015-10-01 14:29:53 +02:00
parent 2ef889b1c4
commit 3384dd0a55

View file

@ -6,7 +6,7 @@ with lib;
rec {
escape =
let
isSafeChar = c: match "[-./0-9_a-zA-Z]" c != null;
isSafeChar = c: match "[-+./0-9:=A-Z_a-z]" c != null;
in
stringAsChars (c:
if isSafeChar c then c