mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Fix: update ASN regex to support Unicode (#5099)
This commit is contained in:
		@@ -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