diff --git a/flaskinventory/flaskdgraph/utils.py b/flaskinventory/flaskdgraph/utils.py index 86894187..c7ced5d2 100644 --- a/flaskinventory/flaskdgraph/utils.py +++ b/flaskinventory/flaskdgraph/utils.py @@ -5,7 +5,7 @@ def strip_query(query): # towards certain special characters # for term matching and regex these characters # can simply be removed - return re.sub(r'"|/|\\|\(|\)|<|>|\{|\}|\[|\]|\$|&|#|\+|\^|\?|\*|\.', '', query) + return re.sub(r'"|/|\\|\(|\)|<|>|\{|\}|\[|\]|\$|&|#|\+|\^|\?|\*', '', query) def escape_query(query): - return re.sub(r'("|/|\\|\(|\)|<|>|\{|\}|\[|\]|\$|&|#|\+|\^|\?|\*|\.)', r'\\\1', query) \ No newline at end of file + return re.sub(r'("|/|\\|\(|\)|<|>|\{|\}|\[|\]|\$|&|#|\+|\^|\?|\*)', r'\\\1', query) \ No newline at end of file