mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
Fix: update ASN regex to support Unicode (#5099)
This commit is contained in:
parent
e16a790b14
commit
1dc8477a00
@ -105,7 +105,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(r"\D", "", asn_text)
|
||||
|
||||
# now, try parsing the ASN number
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user