mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 09:01:30 +01:00
Small improvements
This commit is contained in:
@@ -44,6 +44,7 @@ import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.Enumeration;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import javax.mail.Address;
|
||||
@@ -250,7 +251,8 @@ public class EntityRule {
|
||||
Pattern pattern = Pattern.compile(needle, Pattern.DOTALL);
|
||||
matched = pattern.matcher(haystack).matches();
|
||||
} else
|
||||
matched = haystack.toLowerCase().contains(needle.trim().toLowerCase());
|
||||
matched = haystack.toLowerCase(Locale.ROOT)
|
||||
.contains(needle.trim().toLowerCase(Locale.ROOT));
|
||||
|
||||
Log.i("Rule=" + name + " matched=" + matched +
|
||||
" needle=" + needle + " haystack=" + haystack + " regex=" + regex);
|
||||
|
||||
Reference in New Issue
Block a user