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

ip正则表达式错误 #238

Closed
starryskydog opened this issue Mar 1, 2017 · 1 comment
Closed

ip正则表达式错误 #238

starryskydog opened this issue Mar 1, 2017 · 1 comment
Labels

Comments

@starryskydog
Copy link

SensitiveInfoUtils类中ip正则表达式错误,正确的ipv4正则如下:
public static final String IPV4_REGEX = "((\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])){3})";
这个是ipv4的 建议考虑下后期ipv6

@terrymanu terrymanu added the bug label Mar 21, 2017
@terrymanu
Copy link
Member

谢谢贡献代码

terrymanu added a commit that referenced this issue Mar 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants