From e7d2465f2e695517aaf7ff9f6317692781f18180 Mon Sep 17 00:00:00 2001 From: Sam Hadow Date: Tue, 6 Feb 2024 19:37:25 +0100 Subject: [PATCH] attributes regex fix --- src/aliexpress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aliexpress.py b/src/aliexpress.py index 371be46..296d2de 100644 --- a/src/aliexpress.py +++ b/src/aliexpress.py @@ -75,7 +75,7 @@ def check_item(settings_item): def get_attributes(attributes_raw): '''return a list of attributes from attributes raw string''' # id_regex = re.compile(r'([0-9]*)=') - attr_regex = re.compile(r'#([0-9a-zA-Z \.]*)') + attr_regex = re.compile(r'#([0-9a-zA-Z \.\-]*)') # item_id = re.search(id_regex, attributes_raw).group(1) attributes = re.findall(attr_regex, attributes_raw)