Skip to content

Commit

Permalink
fix: New RE_PROBE_IPV6_ONLY with better complexity in worst case (#609)
Browse files Browse the repository at this point in the history
Example ':'*100

Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
  • Loading branch information
AlekseyLobanov and kellyjonbrazil authored Nov 19, 2024
1 parent c0f9b70 commit 0af4a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jc/parsers/traceroute.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class info():
RE_HEADER = re.compile(r'(\S+)\s+\((\d+\.\d+\.\d+\.\d+|[0-9a-fA-F:]+)\)')
RE_PROBE_NAME_IP = re.compile(r'(\S+)\s+\((\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|[0-9a-fA-F:]+)\)+')
RE_PROBE_IP_ONLY = re.compile(r'(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s+([^\(])')
RE_PROBE_IPV6_ONLY = re.compile(r'(([a-f0-9:]+:+)+[a-f0-9]+)')
RE_PROBE_IPV6_ONLY = re.compile(r'(([a-f0-9]*:)+[a-f0-9]+)')
RE_PROBE_BSD_IPV6 = re.compile(r'\b(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}\b')
RE_HOP = re.compile(r'^\s*(\d+)?\s+(.+)$')
RE_PROBE_ASN = re.compile(r'\[AS(\d+)\]')
Expand Down

0 comments on commit 0af4a3a

Please sign in to comment.