Skip to content

Commit

Permalink
38 regex fix attempt (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
secynic committed Sep 14, 2020
1 parent 00879c9 commit 67b9c89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipwhois/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
r'(?P<ip>'
# IPv4
r'(((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.)){3}'
'(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)'
r'(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)'
# IPv6
r'|\[?(((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:)'
r'{6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|'
Expand All @@ -110,7 +110,7 @@
r'((:(6553[0-5]|655[0-2]\d|65[0-4]\d{2}|6[0-4]\d{3}|[1-5]\d{4}|[1-9]\d{0,3}'
# Optional CIDR block
r'))|(\/(?:[012]\d?|3[012]?|[4-9])))?'
')'
r')'
)


Expand Down

0 comments on commit 67b9c89

Please sign in to comment.