summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Grasman <kim.grasman@gmail.com>2017-01-23 20:43:38 +0100
committerKim Gräsman <kim.grasman@gmail.com>2017-01-25 20:31:17 +0100
commit17642d407aa15df9639bf0f7c2ae7c5da069ec60 (patch)
treec7abdb10153e4d6bc36154cdf26a3d6df0573df7
parent30604d9bcd2ced4f0b7c8602c262eda1ceb8046a (diff)
Relax pointer detection regex
Clang sometimes forgets to put in a space between pointer values and the trailing identifier (`nullptr`), so remove the trailing word boundary requirement from pointer detection.
-rwxr-xr-xscrub-logs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scrub-logs.py b/scrub-logs.py
index 60a6178..1abe4ce 100755
--- a/scrub-logs.py
+++ b/scrub-logs.py
@@ -26,7 +26,7 @@ def strip_path_prefix(line):
def strip_addrs(line):
- line = re.sub(r'\b(0x)?[0-9A-Fa-f]{6,16}\b', '', line)
+ line = re.sub(r'\b(0x)?[0-9A-Fa-f]{6,16}', '', line)
return line