From f164ac90dbd2d9f50b94f056bf7c8fe1f95e94b9 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Wed, 24 Oct 2018 09:57:48 -0700 Subject: [PATCH] Disallow punctuation in icon initials. --- .../securesms/contacts/avatars/GeneratedContactPhoto.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/contacts/avatars/GeneratedContactPhoto.java b/src/org/thoughtcrime/securesms/contacts/avatars/GeneratedContactPhoto.java index 5464486ce0..560494962a 100644 --- a/src/org/thoughtcrime/securesms/contacts/avatars/GeneratedContactPhoto.java +++ b/src/org/thoughtcrime/securesms/contacts/avatars/GeneratedContactPhoto.java @@ -21,7 +21,7 @@ import java.util.regex.Pattern; public class GeneratedContactPhoto implements FallbackContactPhoto { - private static final Pattern PATTERN = Pattern.compile("[^\\p{L}\\p{Nd}\\p{P}\\p{S}]+"); + private static final Pattern PATTERN = Pattern.compile("[^\\p{L}\\p{Nd}\\p{S}]+"); private static final Typeface TYPEFACE = Typeface.create("sans-serif-medium", Typeface.NORMAL); private final String name;