summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDafydd Harries <dafydd.harries@collabora.co.uk>2009-08-12 16:39:00 +0100
committerDafydd Harries <dafydd.harries@collabora.co.uk>2009-08-12 16:42:53 +0100
commit1ef44ecb4beafc397feb048e50908ae2bdb8b625 (patch)
tree9b8edfd7ef5a971beabb1cca3d641f11dc19f639 /tools
parent6fa0233593ca61cea05726eaeecc8be19bc3b0ea (diff)
improve log strip regex for pointers
Diffstat (limited to 'tools')
-rw-r--r--tools/log-strip.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/log-strip.py b/tools/log-strip.py
index d7f0e68c6..2f28a7b02 100644
--- a/tools/log-strip.py
+++ b/tools/log-strip.py
@@ -12,7 +12,7 @@ def sanitise(line):
re.sub('^(\*\* )?\(telepathy-gabble:\d+\)', '',
re.sub('\x1b\[0m', '',
re.sub('^RECV \[\d+\]', 'RECV [???]',
- re.sub('0x.......', '0x???????',
+ re.sub('0x[0-9A-Fa-f]{5,8}', '0x???????',
re.sub("('?<[^ ]+ [^>]*id=)[\"'][^\"']+[\"']",
lambda m: m.group(1) + '"?????"', line))))))