nealstewart/backbone.validations

email 'test@example.com@example.com' does not fail validation

Closed this issue · 0 comments

Hi there,

following test does not fail, although it should

  var EmailTestModel = Backbone.Model.extend({
    validate : {
      email : {
        type : "email"
      }
    }
  });

  var m = new EmailTestModel;
  equal(m.set({email : "test@example.com@example.com"}, {validate: true}), false);