Sha256: 67cb5550ce0c23dc87da4755478b6c4b90a78f6e56c9885f1d587f1bc0881ab2

Contents?: true

Size: 314 Bytes

Versions: 11

Compression:

Stored size: 314 Bytes

Contents

require "attentive/entity"

# Email regex asserts that there are no @ symbols or whitespaces in either the
# localpart or the domain, and that there is a single @ symbol separating the
# localpart and the domain.
Attentive::Entity.define "core.email", %q{(?<email>[^@\s]+@[^@\s]+)} do |match|
  match["email"]
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
attentive-0.3.9 lib/attentive/entities/core/email.rb
attentive-0.3.8 lib/attentive/entities/core/email.rb
attentive-0.3.7 lib/attentive/entities/core/email.rb
attentive-0.3.6 lib/attentive/entities/core/email.rb
attentive-0.3.5 lib/attentive/entities/core/email.rb
attentive-0.3.4 lib/attentive/entities/core/email.rb
attentive-0.3.3 lib/attentive/entities/core/email.rb
attentive-0.3.2 lib/attentive/entities/core/email.rb
attentive-0.3.1 lib/attentive/entities/core/email.rb
attentive-0.3.0 lib/attentive/entities/core/email.rb
attentive-0.2.0 lib/attentive/entities/core/email.rb