element-plus
element-plus copied to clipboard
[Component] [input] form email 验证不正确
Bug Type: Component
Environment
- Vue Version:
3.5.13 - Element Plus Version:
2.9.10 - Browser / OS:
any - Build Tool:
Vite
Reproduction
Related Component
el-input
Reproduction Link
Steps to reproduce
E-mail:[email protected]
What is Expected?
识别非email字符
What is actually happening?
不识别
Additional comments
(empty)
It seems to be recognized normally.
英文的 : 是可以正常识别
中文的:会被认为是合法的字符
看起来是async-validator的正则匹配有问题,建议使用自定义匹配规则。
https://github.com/yiminghe/async-validator/blob/master/src/rule/type.ts#L9