From 182a08f6eb16d3d3358f431925b67d4713deb8c7 Mon Sep 17 00:00:00 2001 From: "ssw@internet2.edu" Date: Tue, 10 Jan 2023 14:59:21 -0500 Subject: [PATCH] fixed type checking --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index b26d01f..9585e67 100644 --- a/main.py +++ b/main.py @@ -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