File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ def ipv4_len(ip_len=3):
245
245
[\[\(\\]*?\.[\]\)]*?
246
246
){3}
247
247
(?:[1-9]?\d|1\d\d|2[0-4]\d|25[0-5])
248
- (?:(?=[^\d\.])|$)
248
+ (?:(?=[^\d\.])|$)(?!\/\d{1,2}(?!\d))
249
249
""" ,
250
250
re .VERBOSE ,
251
251
)
@@ -262,7 +262,7 @@ def ipv4_len(ip_len=3):
262
262
){4}
263
263
([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])
264
264
(?:[1-9]?\d|1\d\d|2[0-4]\d|25[0-5])
265
- (?:(?=[^\d\.])|$)
265
+ (?:(?=[^\d\.])|$)(?!\/\d{1,2}(?!\d))
266
266
""" ,
267
267
re .VERBOSE ,
268
268
)
@@ -611,7 +611,6 @@ def ipv4_str(data):
611
611
# Iterates over any ip address with 4 numbers after the final (3rd) octet
612
612
for ip_address in ipv4_len (4 ).finditer (data ):
613
613
pass
614
-
615
614
if refang :
616
615
yield refang_ipv4 (ip_address .group (0 ))
617
616
else :
Original file line number Diff line number Diff line change 8
8
tooshor.t
9
9
tooshor.
10
10
adc83b191b1c6ea0fd8b46cd9f32e592fc
11
+ 100.20.30.0/ 24
You can’t perform that action at this time.
0 commit comments