Skip to content

email validation doesn't think 'foo@foo..com' is wrong #60

Open
jpr5 opened this Issue Sep 24, 2012 · 2 comments

2 participants

@jpr5
DataMapper member
jpr5 commented Sep 24, 2012
class User
  include ::DataMapper::Resource

  property :id, Serial
  property :email, String

  validates_format_of :email, :as => :email_address

end

User.create(:email => 'foo@foo..com') # => succeeds
@jpr5
DataMapper member
jpr5 commented Sep 25, 2012

Failing test at jpr5@23f9af5

@tillsc
tillsc commented Jan 2, 2015

There is a pull request addressing this issue: #71

Could you vote for the pull request and close this issue if the solution is ok for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.