From 23e3551f275ae5216788da98b19eb46e1083f268 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 30 Apr 2023 19:09:43 +0200 Subject: [PATCH] Fix regex escape in rule_executor.py --- src/ifcopenshell-python/ifcopenshell/express/rule_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/express/rule_executor.py b/src/ifcopenshell-python/ifcopenshell/express/rule_executor.py index 0bd9bb5501..e9b66a56fb 100644 --- a/src/ifcopenshell-python/ifcopenshell/express/rule_executor.py +++ b/src/ifcopenshell-python/ifcopenshell/express/rule_executor.py @@ -9,7 +9,7 @@ from codegen import indent def reverse_compile(s): return re.sub( - "\s*\-\s*EXPRESS_ONE_BASED_INDEXING", + r"\s*\-\s*EXPRESS_ONE_BASED_INDEXING", "", re.sub( ", )?+.(, INDETERMINATE)\\"[::-1],