mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 03:15:39 +01:00
Lower case with root locale
This commit is contained in:
@@ -31,6 +31,7 @@ import androidx.room.PrimaryKey;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.util.Locale;
|
||||
import java.util.Objects;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
@@ -167,7 +168,7 @@ public class EntityIdentity {
|
||||
if (user.equalsIgnoreCase(cemail[0]))
|
||||
return true;
|
||||
} else {
|
||||
String input = (sender_extra_regex.contains("@") ? other.toLowerCase() : cother[0]);
|
||||
String input = (sender_extra_regex.contains("@") ? other.toLowerCase(Locale.ROOT) : cother[0]);
|
||||
if (Pattern.matches(sender_extra_regex, input))
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user