From 9f75e81c5f91aa4236f86c29437de190503ad586 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 18 Jun 2017 15:36:18 +0200 Subject: lib: add test and testString --- lib/shell.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/shell.nix') diff --git a/lib/shell.nix b/lib/shell.nix index a8ff5dbe..f9779028 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 -- cgit v1.2.3