better implementation of isSpecial
This commit is contained in:
parent
d874db8da2
commit
8765d27236
|
@ -260,7 +260,7 @@ pwSearch x db = filter (\y -> l y `contains` l x) $ M.keys db where
|
||||||
l = map toLower
|
l = map toLower
|
||||||
|
|
||||||
isSpecial :: Char -> Bool
|
isSpecial :: Char -> Bool
|
||||||
isSpecial x = not $ isUpper x || isLower x || isDigit x
|
isSpecial = not . isAlphaNum
|
||||||
|
|
||||||
mkPass :: String -> PWPolicy -> String
|
mkPass :: String -> PWPolicy -> String
|
||||||
mkPass (x:xs) p = let p' = nextPolicy x p in
|
mkPass (x:xs) p = let p' = nextPolicy x p in
|
||||||
|
|
Loading…
Reference in New Issue
Block a user