aboutsummaryrefslogtreecommitdiff
path: root/examples/python/crashlog.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/python/crashlog.py')
-rwxr-xr-xexamples/python/crashlog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/python/crashlog.py b/examples/python/crashlog.py
index 60a6a1f50f00..a557b604afb4 100755
--- a/examples/python/crashlog.py
+++ b/examples/python/crashlog.py
@@ -452,7 +452,7 @@ class CrashLog(symbolication.Symbolicator):
for image in self.images:
if image.identifier == identifier:
return image
- regex_text = '^.*\.%s$' % (identifier)
+ regex_text = '^.*\.%s$' % (re.escape(identifier))
regex = re.compile(regex_text)
for image in self.images:
if regex.match(image.identifier):