mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Fix: update ASN regex to support Unicode (#5099)
This commit is contained in:
parent
74e89b0ee3
commit
151d337f6c
@ -105,7 +105,7 @@ class BarcodeReader:
|
|||||||
asn_text = asn_text[len(settings.CONSUMER_ASN_BARCODE_PREFIX) :].strip()
|
asn_text = asn_text[len(settings.CONSUMER_ASN_BARCODE_PREFIX) :].strip()
|
||||||
|
|
||||||
# remove non-numeric parts of the remaining string
|
# 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
|
# now, try parsing the ASN number
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user