X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/1d77153a2bc5c6c7a8d7bc7b72fe8fc7db1208c8..2852b2ea6dc26ba062ac22dd526bf6793b38253c:/src/main/java/org/asamk/signal/logging/Scrubber.java diff --git a/src/main/java/org/asamk/signal/logging/Scrubber.java b/src/main/java/org/asamk/signal/logging/Scrubber.java index efa196ce..c1d66893 100644 --- a/src/main/java/org/asamk/signal/logging/Scrubber.java +++ b/src/main/java/org/asamk/signal/logging/Scrubber.java @@ -37,7 +37,7 @@ public final class Scrubber { * Supposedly, the shortest international phone numbers in use contain seven digits. * Handles URL encoded +, %2B */ - private static final Pattern E164_PATTERN = Pattern.compile("(\\+|%2B)(\\d{5,13})(\\d{2})"); + private static final Pattern E164_PATTERN = Pattern.compile("(\\+|%2B|/org/asamk/Signal/_)(\\d{5,13})(\\d{2})"); private static final String E164_CENSOR = "*************"; /** @@ -50,7 +50,7 @@ public final class 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 = "********-****-****-****-**********";