stdlib-js / stdlib-js/stdlib

is-email-address method incorrectly validates invalid email addresses

未关闭
#3,132 9 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
6k
派生
1.3k
平均合并
1 天 3 小时
30 天内合并 PR
611

描述

### Description

### Description
The **is-email-address** method in the **lib/@ stdlib /assert/** module is incorrectly returning true for invalid email addresses.

### Related Issues

When attempting to validate email addresses using the is-email-address method, we are encountering unexpected results. For example, when providing the following inputs:

@
@gmail.com
abc@gmail
abc@

The validation does not behave as expected.

### Questions

I would like to work on these issue!!

### Demo

_No response_

### Reproduction

```shell
- We need to modify the regular expression used for validating email addresses.
```

### Expected Results

```shell
false
false
false
false
```

### Actual Results

```shell
true
true
true
true
```

### Version

^0.6.0

### Environments

Node.js

### Browser Version

_No response_

### Node.js / npm Version

v22.11.0 / 10.9.0

### Platform

Windows 11

### Checklist

- [x] Read and understood the [Code of Conduct](https://github.com/stdlib-js/stdlib/blob/develop/CODE_OF_CONDUCT.md).
- [x] Searched for existing issues and pull requests.

贡献指南

打开贡献指南

调研方向

目标是 lib/@stdlib/assert/ 中的 is-email-address 方法;首先定位其电子邮件验证正则表达式,并检查 issue 中的四个示例。完成的标准是四个输入全部返回 false;修改后使用模块现有的检查验证该方法。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
testing
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
50/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。