module Hatchbuck::TermDeterminer
Public Class Methods
determine(term)
click to toggle source
# File lib/helpers.rb, line 20 def self.determine(term) if term =~ /\A[\w+\-.]+@[a-z\d\-]+(\.[a-z\d\-]+)*\.[a-z]+\z/i return 'email' else return 'contactid' end end