mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-06 16:20:30 +00:00
Fix: update ASN regex to support Unicode (#5099)
This commit is contained in:
1 parent
74e89b0ee3
commit
151d337f6c
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user