Fix stupid mistake in 6ff61909a91edf3f31adc608dcafd3f5f8e642d0
I forgot to alter the call to gsub() when breaking up the unless to shorten the line.
This commit is contained in:
		
							parent
							
								
									0a175c4feb
								
							
						
					
					
						commit
						5b58931ebd
					
				@ -50,7 +50,7 @@ module StringInreplaceExtension
 | 
			
		||||
  def remove_make_var!(flags)
 | 
			
		||||
    Array(flags).each do |flag|
 | 
			
		||||
      # Also remove trailing \n, if present.
 | 
			
		||||
      if gsub!(/^#{Regexp.escape(flag)}[ \t]*[\\?\+\:\!]?=.*$\n?/, "", false)
 | 
			
		||||
      if !gsub(/^#{Regexp.escape(flag)}[ \t]*[\\?\+\:\!]?=.*$\n?/, "")
 | 
			
		||||
        errors << "expected to remove #{flag.inspect}"
 | 
			
		||||
      end
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user