aboutcode-org / aboutcode-org/scancode-toolkit
Newer tlds not supported
Đang mở
bug
email and url scan
- Ngôn ngữ chính
- Python
- Star
- 2.6k
- Fork
- 791
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 5
Mô tả
### Description
The current e-mail regular expression cannot catch the latest (and greatest?) TLDs. There are many these days:
https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains
but scancode limits it to something either 2, 3 or 4 characters:
```
def emails_regex():
return re.compile('\\b[A-Z0-9._%-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}\\b', re.IGNORECASE)
```
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.