mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Fix #3628. Minor issue where regex queries didn't load properly.
This commit is contained in:
@@ -184,7 +184,7 @@ class ImportFilterQueryTransformer(lark.Transformer):
|
|||||||
elif args[0].data == "quoted_string":
|
elif args[0].data == "quoted_string":
|
||||||
return args[0].children[0].value[1:-1].replace('\\"', '"')
|
return args[0].children[0].value[1:-1].replace('\\"', '"')
|
||||||
elif args[0].data == "regex_string":
|
elif args[0].data == "regex_string":
|
||||||
return args[0].children[0].value
|
return "/" + args[0].children[0].value + "/"
|
||||||
elif args[0].data == "special":
|
elif args[0].data == "special":
|
||||||
if args[0].children[0].data == "null":
|
if args[0].children[0].data == "null":
|
||||||
return "NULL"
|
return "NULL"
|
||||||
|
|||||||
Reference in New Issue
Block a user