mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 17:11:12 +01:00
Let regex match newlines
This commit is contained in:
@@ -206,7 +206,7 @@ public class EntityRule {
|
||||
boolean matched = false;
|
||||
if (needle != null && haystack != null)
|
||||
if (regex) {
|
||||
Pattern pattern = Pattern.compile(needle);
|
||||
Pattern pattern = Pattern.compile(needle, Pattern.DOTALL);
|
||||
matched = pattern.matcher(haystack).matches();
|
||||
} else
|
||||
matched = haystack.toLowerCase().contains(needle.trim().toLowerCase());
|
||||
|
||||
Reference in New Issue
Block a user