Skip to content


Browse files Browse the repository at this point in the history
fixed type checking
  • Loading branch information
ssw committed Jan 10, 2023
1 parent 6081b44 commit 182a08f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion
Expand Up @@ -92,7 +92,7 @@ def is_valid_prefix(prefix):

def is_valid_asn(asn):
# Check if the ASN is a string starting with "AS", followed by numbers or just a number
if type(asn) is int:
if asn.isdigit():
return True
if re.match(r'^[Aa][Ss]\d+$', asn):
return True
Expand Down

0 comments on commit 182a08f

Please sign in to comment.