diff options
| author | tv <tv@krebsco.de> | 2017-06-18 15:36:18 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2017-06-18 15:49:54 +0200 |
| commit | 11a16797df89862be7dff81b6af5cd5bf41b580c (patch) | |
| tree | a39844f33876126ae3d93be28e5a4cb7c07d200e /lib/shell.nix | |
| parent | f48808dda4911af60bc0cc32c00d6544f6e713b9 (diff) | |
lib: add test and testString
Diffstat (limited to 'lib/shell.nix')
| -rw-r--r-- | lib/shell.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/shell.nix b/lib/shell.nix index a8ff5db..f977902 100644 --- a/lib/shell.nix +++ b/lib/shell.nix @@ -5,7 +5,7 @@ with lib; rec { escape = let - isSafeChar = c: match "[-+./0-9:=A-Z_a-z]" c != null; + isSafeChar = testString "[-+./0-9:=A-Z_a-z]"; in stringAsChars (c: if isSafeChar c then c |
