mirror of
https://github.com/SeedSigner/seedsigner.git
synced 2026-10-05 15:08:25 +00:00
add bcr prefix to bitcoin address detection regex
This commit is contained in:
@@ -477,7 +477,7 @@ class DecodeQR:
|
|||||||
def is_bitcoin_address(s):
|
def is_bitcoin_address(s):
|
||||||
if re.search(r'^bitcoin\:.*', s, re.IGNORECASE):
|
if re.search(r'^bitcoin\:.*', s, re.IGNORECASE):
|
||||||
return True
|
return True
|
||||||
elif re.search(r'^((bc1|tb1|[123]|[mn])[a-zA-HJ-NP-Z0-9]{25,62})$', s):
|
elif re.search(r'^((bc1|tb1|bcr|[123]|[mn])[a-zA-HJ-NP-Z0-9]{25,62})$', s):
|
||||||
# TODO: Handle regtest bcrt?
|
# TODO: Handle regtest bcrt?
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user