utils/analytics: fix handling of newlines
This commit is contained in:
		
							parent
							
								
									af61acddd2
								
							
						
					
					
						commit
						af429d4f1a
					
				@ -112,7 +112,7 @@ module Utils
 | 
			
		||||
        options_array = command_instance.args.options_only.to_a.compact
 | 
			
		||||
 | 
			
		||||
        # Strip out any flag values to reduce cardinality and preserve privacy.
 | 
			
		||||
        options_array.map! { |option| option.sub(/=.*/, "=") }
 | 
			
		||||
        options_array.map! { |option| option.sub(/=.*/m, "=") }
 | 
			
		||||
 | 
			
		||||
        # Strip out --with-* and --without-* options
 | 
			
		||||
        options_array.reject! { |option| option.match(/^--with(out)?-/) }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user