From 0810fa75642eed9ad430df5b6472ece1ce21a6fd Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 14 Oct 2022 11:30:11 +0200 Subject: [PATCH] Escape \W in selector grammar --- src/ifcopenshell-python/ifcopenshell/util/selector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/selector.py b/src/ifcopenshell-python/ifcopenshell/util/selector.py index 0f520351b3..f2dcac3e1a 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/selector.py +++ b/src/ifcopenshell-python/ifcopenshell/util/selector.py @@ -37,7 +37,7 @@ class Selector: filter: "[" filter_key (comparison filter_value)? "]" filter_key: WORD | pset_or_qto filter_value: ESCAPED_STRING | SIGNED_FLOAT | SIGNED_INT | BOOLEAN | NULL - pset_or_qto: /[^\W][^.=<>]*[^\W]/ "." /[^\W][^.=<>]*[^\W]/ + pset_or_qto: /[^\\W][^.=<>]*[^\\W]/ "." /[^\\W][^.=<>]*[^\\W]/ lfunction: and | or inverse_relationship: types | decomposed_by | bounded_by types: "*"