remove regexp test from is_address; non-matching strings will fail anyway
This commit is contained in:
@@ -399,9 +399,6 @@ def is_valid(addr):
|
||||
|
||||
|
||||
def is_address(addr):
|
||||
ADDRESS_RE = re.compile('[1-9A-HJ-NP-Za-km-z]{26,}\\Z')
|
||||
if not ADDRESS_RE.match(addr):
|
||||
return False
|
||||
try:
|
||||
addrtype, h = bc_address_to_hash_160(addr)
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user