diff options
author | Kim Grasman <kim.grasman@gmail.com> | 2017-01-23 20:43:38 +0100 |
---|---|---|
committer | Kim Gräsman <kim.grasman@gmail.com> | 2017-01-25 20:31:17 +0100 |
commit | 17642d407aa15df9639bf0f7c2ae7c5da069ec60 (patch) | |
tree | c7abdb10153e4d6bc36154cdf26a3d6df0573df7 | |
parent | 30604d9bcd2ced4f0b7c8602c262eda1ceb8046a (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-x | scrub-logs.py | 2 |
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 |