Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一个正则bug #2

Closed
woaiqiukui opened this issue Feb 24, 2022 · 2 comments
Closed

一个正则bug #2

woaiqiukui opened this issue Feb 24, 2022 · 2 comments

Comments

@woaiqiukui
Copy link

woaiqiukui commented Feb 24, 2022

EmailAll-master/common/utils.py中match_emails方法的正则存在bug,对"."前的字符数量匹配有偏差
reg_emails = re.compile(r"[a-zA-Z0-9][_|.][a-zA-Z0-9]+@" + '[a-zA-Z0-9.-]' + domain.replace('www.', ''))
image
在使用中可以发现存在明显错误
image

@Taonn
Copy link
Owner

Taonn commented Feb 24, 2022

EmailAll-master/common/utils.py中match_emails方法的正则存在bug,对"."前的字符数量匹配有偏差 reg_emails = re.compile(r"[a-zA-Z0-9][|.][a-zA-Z0-9]+@" + '[a-zA-Z0-9.-]_' + domain.replace('www.', '')) image 在使用中可以发现存在明显错误 image

感谢 我更新一下

@Taonn
Copy link
Owner

Taonn commented Feb 24, 2022

EmailAll-master/common/utils.py中match_emails方法的正则存在bug,对"."前的字符数量匹配有偏差 reg_emails = re.compile(r"[a-zA-Z0-9][|.][a-zA-Z0-9]+@" + '[a-zA-Z0-9.-]_' + domain.replace('www.', '')) image 在使用中可以发现存在明显错误 image

已更新!

@Taonn Taonn closed this as completed Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants