From 8765d272364259915c28d64633c971f67ffb71ff Mon Sep 17 00:00:00 2001 From: Jonathan Lamothe Date: Tue, 25 Dec 2018 16:10:13 -0500 Subject: [PATCH] better implementation of isSpecial --- src/Password.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Password.hs b/src/Password.hs index 9645d5e..0f39d73 100644 --- a/src/Password.hs +++ b/src/Password.hs @@ -260,7 +260,7 @@ pwSearch x db = filter (\y -> l y `contains` l x) $ M.keys db where l = map toLower isSpecial :: Char -> Bool -isSpecial x = not $ isUpper x || isLower x || isDigit x +isSpecial = not . isAlphaNum mkPass :: String -> PWPolicy -> String mkPass (x:xs) p = let p' = nextPolicy x p in