aboutcode-org / aboutcode-org/scancode-toolkit

Newer tlds not supported

未關閉
#5,057 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug email and url scan
主要語言
Python
星號
2.6k
分支
791
平均合併
1 天 12 小時
30 天內合併 PR
5

描述

### 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)
```

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。