From 2852b2ea6dc26ba062ac22dd526bf6793b38253c Mon Sep 17 00:00:00 2001 From: AsamK Date: Tue, 17 Oct 2023 21:56:24 +0200 Subject: [PATCH] Extend log scrubber for dbus serviceIds --- src/main/java/org/asamk/signal/logging/Scrubber.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/asamk/signal/logging/Scrubber.java b/src/main/java/org/asamk/signal/logging/Scrubber.java index 2c60faa57e..c1d6689395 100644 --- a/src/main/java/org/asamk/signal/logging/Scrubber.java +++ b/src/main/java/org/asamk/signal/logging/Scrubber.java @@ -50,7 +50,7 @@ private Scrubber() { * The middle group will be censored. */ private static final Pattern UUID_PATTERN = Pattern.compile( - "(JOB::)?([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{10})([0-9a-f]{2})", + "(JOB::)?([0-9a-f]{8}[-_][0-9a-f]{4}[-_][0-9a-f]{4}[-_][0-9a-f]{4}[-_][0-9a-f]{10})([0-9a-f]{2})", Pattern.CASE_INSENSITIVE); private static final String UUID_CENSOR = "********-****-****-****-**********";