Skip to content

Commit

Permalink
Merge pull request #16 from xingguang2013/master
Browse files Browse the repository at this point in the history
修改IP地址的正则表达式
  • Loading branch information
fengjiachun authored Apr 25, 2017
2 parents 9554ffb + 6af661b commit bf892a5
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 bf892a5

Please sign in to comment.