module EmailFormat
Constants
- VERSION
Public Class Methods
valid?(email, strict)
click to toggle source
# File lib/email_format.rb, line 6 def self.valid?(email, strict) if strict !!(email =~ EmailRegex::EMAIL_ADDRESS_REGEX) else !!(email =~ /^[\S&&[^@]]+@[\S&&[^@]]+$/) end end