add fnc for new matcher

This commit is contained in:
Matthias 2021-12-29 02:38:32 +01:00
parent 7ef0e7941e
commit 771f3d6b7b
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -422,6 +422,10 @@ def extract_serial_numbers(serials, expected_quantity, next_number: int):
serials = serials.strip()
# fill in the next serial number into the serial
if '~' in serials:
serials = serials.replace('~', next_number)
groups = re.split("[\s,]+", serials)
numbers = []