about summary refs log tree commit diff stats
path: root/miasm/core/graph.py
diff options
context:
space:
mode:
Diffstat (limited to 'miasm/core/graph.py')
-rw-r--r--miasm/core/graph.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm/core/graph.py b/miasm/core/graph.py
index e680894c..debea38e 100644
--- a/miasm/core/graph.py
+++ b/miasm/core/graph.py
@@ -20,7 +20,7 @@ class DiGraph(object):
         # N -> Nodes N2 with a edge (N2 -> N)
         self._nodes_pred = {}
 
-        self.escape_chars = re.compile(r'[\{\}&|<>]')
+        self.escape_chars = re.compile('[' + re.escape('{}[]') + '&|<>' + ']')
 
 
     def __repr__(self):