Sha256: bdaef72ed22a64f7639a48c82df227d36ee02b8b206ee53521a7cde62dc6b63f
Contents?: true
Size: 142 Bytes
Versions: 94
Compression:
Stored size: 142 Bytes
Contents
class EmailValidator def self.valid?(email) regex = /\A[\w+\-.]+@[a-z\d\-]+(\.[a-z\d\-]+)*\.[a-z]+\z/i regex.match? email end end
Version data entries
94 entries across 94 versions & 1 rubygems