Open
Description
Bug Report
Q | A |
---|---|
Version(s) | v0.0.0-20230301143203-a9d515a09cc2 |
Summary
Underscore in the domain part is recognized as valid
Current behavior
Underscore in the domain part is recognized as valid
How to reproduce
import (
"fmt"
"github.com/asaskevich/govalidator"
)
func main() {
e := "user@do_main.com"
fmt.Println(govalidator.IsEmail(e)) // true
}
Expected behavior
import (
"fmt"
"github.com/asaskevich/govalidator"
)
func main() {
e := "user@do_main.com"
fmt.Println(govalidator.IsEmail(e)) // false
}
Metadata
Metadata
Assignees
Labels
No labels