This commit is contained in:
shamoon 2023-10-16 07:26:17 -07:00
parent e8cbee5a6a
commit 648f96a652

View File

@ -102,7 +102,7 @@ class BarcodeReader:
asn_text = asn_text[len(settings.CONSUMER_ASN_BARCODE_PREFIX) :].strip()
# remove non-numeric parts of the remaining string
asn_text = re.sub('[^0-9]','', asn_text)
asn_text = re.sub("[^0-9]", "", asn_text)
# now, try parsing the ASN number
try: