Sha256: 64925d544a6ab70183deee3c576afec235d601e6e086c036805ae7c6d593d1db
Contents?: true
Size: 343 Bytes
Versions: 3
Compression:
Stored size: 343 Bytes
Contents
module Truemail module Validate class Regex < Truemail::Validate::Base ERROR = 'email does not match the regular expression'.freeze def run return true if success(Truemail.configuration.email_pattern.match?(result.email)) add_error(Truemail::Validate::Regex::ERROR) false end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
truemail-0.1.1.2 | lib/truemail/validate/regex.rb |
truemail-0.1.1 | lib/truemail/validate/regex.rb |
truemail-0.1.0 | lib/truemail/validate/regex.rb |