We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c8752c commit d633f73Copy full SHA for d633f73
ipexdbl.py
@@ -17,7 +17,7 @@ def download_file(url):
17
return None
18
19
def extract_ips(text):
20
- ip_pattern = r'(?:(?:\d{1,3}\.){3}\d{1,3})(?:/(?!1\b)(?:[0-9]|[12][0-9]|3[0-2]))?'
+ ip_pattern = r'(?:\d{1,3}\.){3}\d{1,3}(?:/(?:0|[2-9]|[12][0-9]|3[0-2]))?'
21
return re.findall(ip_pattern, text)
22
23
def read_existing_ips(filename):
0 commit comments