mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
Ensure group membership for typing indicators.
This commit is contained in:
committed by
Greyson Parrelli
parent
68d29d9a0f
commit
c6dd25a119
@@ -1,8 +1,6 @@
|
||||
package org.thoughtcrime.securesms.util;
|
||||
|
||||
|
||||
import android.text.TextUtils;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public class DelimiterUtil {
|
||||
@@ -16,7 +14,7 @@ public class DelimiterUtil {
|
||||
}
|
||||
|
||||
public static String[] split(String value, char delimiter) {
|
||||
if (TextUtils.isEmpty(value)) {
|
||||
if (value == null || value.length() == 0) {
|
||||
return new String[0];
|
||||
} else {
|
||||
String regex = "(?<!\\\\)" + Pattern.quote(delimiter + "");
|
||||
|
||||
Reference in New Issue
Block a user