Scrub E164 in dbus path

Related #1189
This commit is contained in:
AsamK 2023-02-19 20:18:05 +01:00
parent 2e63c3b4f7
commit 3206639778

View file

@ -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 = "*************";
/**