class-validator icon indicating copy to clipboard operation
class-validator copied to clipboard

fix: <valid e-mail is invalid by IsEmail decorator>

Open GabrielFMPinheiro opened this issue 2 years ago • 1 comments

Description

I am using class-validator with Nest JS and when I am trying to save this e-mail: [email protected], I`m receiving invalid e-mail but this is a real e-mail.

class-validator version: 0.14.0

Minimal code-snippet showcasing the problem This is the part of code which is validating the e-mail

  @IsEmail()
  @Index()
  email: string;

Expected behavior

Email [email protected] should be accepted

Actual behavior

Email [email protected] is not being accept for decorator IsEmail.

GabrielFMPinheiro avatar Jul 15 '24 13:07 GabrielFMPinheiro

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Aug 30 '24 00:08 github-actions[bot]