Angular JS Email Validation with unicode characters

后端 未结 5 729
日久生厌
日久生厌 2021-01-05 08:45

I have a sign up form for an application, and angular js is responsible for its validation.

I ran into an issue when Angular js wasn\'t accepting an email address wh

5条回答
  •  孤城傲影
    2021-01-05 09:23

    why do you return undefined?

    Refactoring of the function:

    var verificationEmail = function (viewValue) {
      if ((typeof viewValue != "undefined") && viewValue != "") {
        return regex.test(viewValue);
      }
    };
    

提交回复
热议问题