Disallow punctuation in icon initials.

This commit is contained in:
Greyson Parrelli 2018-10-24 09:57:48 -07:00
parent 14abbb1bbb
commit f164ac90db

View File

@ -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;