email domain name contains the full-width symbol "。" also pass the verification
- Dominant language
- JavaScript
- Stars
- 21.2k
- Forks
- 1.5k
- Avg merge
- 4h 57m
- Merged PRs (30d)
- 14
Description
#### Support plan
* *is this issue currently blocking your project?* (yes/no): yes
* *is this issue affecting a production system?* (yes/no): yes
#### Context
* *node version*: 16.14.0
* *module version with issue*: 17.9.1
* *last module version without issue*: unknown
* *environment* (e.g. node, browser, native): browser
* *used with* (e.g. hapi application, another framework, standalone, ...): next.js
* *any other relevant information*:
#### What are you trying to achieve or the steps to reproduce?
email domain name contains the full-width symbol "。" also pass the verification
```js
Joi.object({
email: Joi.string().email({tlds: false}).required()
}).validate({email:"name@test。com"})
```
#### What was the result you got?
validation passed
#### What result did you expect?
invalid
Contributor guide
Assessment
This issue has not been assessed yet.