attributes regex fix

This commit is contained in:
Sam Hadow 2024-02-06 19:37:25 +01:00
parent b9af355e3e
commit e7d2465f2e

View File

@ -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)