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 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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue