lib/myna_bird.rb in myna_bird-0.2.8 vs lib/myna_bird.rb in myna_bird-0.2.9
- old
+ new
@@ -67,9 +67,11 @@
def common_domain?
COMMON_DOMAINS.each do |domain|
if domain.is_a?(Regexp)
return true if domain.match(@domain)
+ elsif domain =~ /\./
+ return true if /#{domain}$/.match(@domain)
else
return true if /^#{domain}\./.match(@domain)
end
end