Skip to content

Commit

Permalink
修改IP地址的正则表达式
Browse files Browse the repository at this point in the history
  • Loading branch information
xingguang2013 committed Apr 25, 2017
1 parent 9554ffb commit 6af661b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
public class NetUtil {

private static final Pattern IP_PATTERN = Pattern.compile("\\d{1,3}(\\.\\d{1,3}){3,5}$");
private static final Pattern IP_PATTERN = Pattern.compile("\\d{1,3}(\\.\\d{1,3}){3}$");
private static final String LOCAL_IP_ADDRESS;

static {
Expand Down

0 comments on commit 6af661b

Please sign in to comment.