mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 21:05:11 +00:00
remove regexp test from is_address; non-matching strings will fail anyway
This commit is contained in:
parent
4d41c36cbb
commit
8b6efaff2d
1 changed files with 0 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue