add back exclusion of whitespace and =

This commit is contained in:
Joey Hess 2019-01-21 12:38:00 -04:00
parent fc1406389d
commit e15d18058b
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -92,8 +92,9 @@ prop_isomorphic_configEscape s = s == (configUnEscape . configEscape) s
prop_parse_show_Config :: RemoteConfig -> Bool
prop_parse_show_Config c
-- whitespace and '=' are not supported in config keys; limit to
-- alphanumerics for simplicity
-- whitespace and '=' are not supported in config keys
| any (\k -> any isSpace k || elem '=' k) (M.keys c) = True
-- limit to alphanumerics for simplicity
| any (all isAlphaNum) (M.keys c) = True
| otherwise = A.parseOnly remoteConfigParser (encodeBS $ showConfig c) ~~ Right c
where