Tosin Onikute
Tosin Onikute

Reputation: 4002

Apache commons-validator not validating gmail

I compiled Apache commons-validator 1.4.1 in my Build.gralde, with the purpose of validating emails. Thinking this was a more Solid Approach to email validation.

compile "commons-validator:commons-validator:1.4.1"

And when I try to run this, It returns True. While this email is False.

EmailValidator.getInstance().isValid("name@gmail");

Why is this so?

Upvotes: 0

Views: 1004

Answers (1)

Tosin Onikute
Tosin Onikute

Reputation: 4002

It appears this issue is only with version 1.4.1, I updated to latest version 1.6 and validations works accordingly.

http://commons.apache.org/proper/commons-validator/changes-report.html

Upvotes: 1

Related Questions