attributes regex fix
This commit is contained in:
parent
b9af355e3e
commit
e7d2465f2e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user