lib/freemail.rb in freemail-0.5.0 vs lib/freemail.rb in freemail-0.6.0
- old
+ new
@@ -26,8 +26,8 @@
def self.free_or_disposable?(email)
free?(email) || disposable?(email)
end
def self.get_domain(email)
- email.split('@').last.downcase.strip
+ email.split('@')[1..-1]&.join('@')&.downcase&.strip
end
end