mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 01:07:47 +00:00
Disallow punctuation in icon initials.
This commit is contained in:
parent
14abbb1bbb
commit
f164ac90db
@ -21,7 +21,7 @@ import java.util.regex.Pattern;
|
|||||||
|
|
||||||
public class GeneratedContactPhoto implements FallbackContactPhoto {
|
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 static final Typeface TYPEFACE = Typeface.create("sans-serif-medium", Typeface.NORMAL);
|
||||||
|
|
||||||
private final String name;
|
private final String name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user