Sha256: aeeda38bd65bb39545c8d893ea0eff24b98a09508ba23a600533e68b61501e55

Contents?: true

Size: 259 Bytes

Versions: 55

Compression:

Stored size: 259 Bytes

Contents

module Volt
  class EmailValidator < FormatValidator
    DEFAULT_OPTIONS = {
      with: /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i,
      message: 'must be an email address'
    }

    private

    def default_options
      DEFAULT_OPTIONS
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
volt-0.9.7.pre8 lib/volt/models/validators/email_validator.rb
volt-0.9.7.pre7 lib/volt/models/validators/email_validator.rb
volt-0.9.7.pre6 lib/volt/models/validators/email_validator.rb
volt-0.9.7.pre5 lib/volt/models/validators/email_validator.rb
volt-0.9.7.pre3 lib/volt/models/validators/email_validator.rb
volt-0.9.7.pre2 lib/volt/models/validators/email_validator.rb
volt-0.9.6 lib/volt/models/validators/email_validator.rb
volt-0.9.6.pre3 lib/volt/models/validators/email_validator.rb
volt-0.9.6.pre2 lib/volt/models/validators/email_validator.rb
volt-0.9.6.pre1 lib/volt/models/validators/email_validator.rb
volt-0.9.5 lib/volt/models/validators/email_validator.rb
volt-0.9.5.pre12 lib/volt/models/validators/email_validator.rb
volt-0.9.5.pre11 lib/volt/models/validators/email_validator.rb
volt-0.9.5.pre9 lib/volt/models/validators/email_validator.rb
volt-0.9.5.pre8 lib/volt/models/validators/email_validator.rb
volt-0.9.5.pre7 lib/volt/models/validators/email_validator.rb
volt-0.9.5.pre6 lib/volt/models/validators/email_validator.rb
volt-0.9.5.pre5 lib/volt/models/validators/email_validator.rb
volt-0.9.5.pre4 lib/volt/models/validators/email_validator.rb
volt-0.9.5.pre3 lib/volt/models/validators/email_validator.rb