audit: fix FormulaText match
It's used in `audit_text` Closes Homebrew/homebrew#37139. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
		
							parent
							
								
									4c5a2eb77c
								
							
						
					
					
						commit
						39473f7694
					
				@ -69,6 +69,14 @@ class FormulaText
 | 
			
		||||
  def has_trailing_newline?
 | 
			
		||||
    /\Z\n/ =~ @text
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def =~ regex
 | 
			
		||||
    regex =~ @text
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def !~ regex
 | 
			
		||||
    regex !~ @text
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
class FormulaAuditor
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user