add unit tests for bbqr and fix deprecation warning for invalid escape sequence '$'

This commit is contained in:
Nick Klockenga
2024-09-04 21:02:23 -04:00
parent 2cf759e96e
commit 389f0479d2
2 changed files with 96 additions and 1 deletions
+1 -1
View File
@@ -363,7 +363,7 @@ class DecodeQR:
elif DecodeQR.is_base64_psbt(s):
return QRType.PSBT__BASE64
elif re.search("^B\$[2HZ]P[0-9A-Z]...", s): # https://github.com/coinkite/BBQr/blob/master/BBQr.md#spliting-the-data
elif re.search(r"^B\$[2HZ]P[0-9A-Z]{4}", s): # https://github.com/coinkite/BBQr/blob/master/BBQr.md#spliting-the-data
return QRType.PSBT__BBQR
# Wallet Descriptor
File diff suppressed because one or more lines are too long