Method: Wiki2Go::GreyList#url_found_in
- Defined in:
- lib/Wiki2Go/GreyList.rb
#url_found_in(lines) ⇒ Object
80 81 82 83 84 85 86 87 |
# File 'lib/Wiki2Go/GreyList.rb', line 80 def url_found_in(lines) lines = lines.join(' ') if lines.kind_of? Array @banned.each do | pattern | match = Regexp.new(pattern.url,Regexp::IGNORECASE) return true if lines =~ match end return false end |