mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Fix #2945. Selector should expand enumerated list properties so that you can match any of them.
This commit is contained in:
@@ -293,7 +293,10 @@ class Selector:
|
||||
results = []
|
||||
for prop_name, prop_value in value.items():
|
||||
if re.match(key, prop_name):
|
||||
results.append(prop_value)
|
||||
if isinstance(prop_value, (list, tuple)):
|
||||
results.extend(prop_value)
|
||||
else:
|
||||
results.append(prop_value)
|
||||
value = results
|
||||
else:
|
||||
value = value.get(key, None)
|
||||
|
||||
Reference in New Issue
Block a user