add back exclusion of whitespace and =
This commit is contained in:
parent
fc1406389d
commit
e15d18058b
1 changed files with 3 additions and 2 deletions
|
@ -92,8 +92,9 @@ prop_isomorphic_configEscape s = s == (configUnEscape . configEscape) s
|
||||||
|
|
||||||
prop_parse_show_Config :: RemoteConfig -> Bool
|
prop_parse_show_Config :: RemoteConfig -> Bool
|
||||||
prop_parse_show_Config c
|
prop_parse_show_Config c
|
||||||
-- whitespace and '=' are not supported in config keys; limit to
|
-- whitespace and '=' are not supported in config keys
|
||||||
-- alphanumerics for simplicity
|
| any (\k -> any isSpace k || elem '=' k) (M.keys c) = True
|
||||||
|
-- limit to alphanumerics for simplicity
|
||||||
| any (all isAlphaNum) (M.keys c) = True
|
| any (all isAlphaNum) (M.keys c) = True
|
||||||
| otherwise = A.parseOnly remoteConfigParser (encodeBS $ showConfig c) ~~ Right c
|
| otherwise = A.parseOnly remoteConfigParser (encodeBS $ showConfig c) ~~ Right c
|
||||||
where
|
where
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue