|
|
@ -206,7 +206,7 @@ public class EntityRule {
|
|
|
|
boolean matched = false;
|
|
|
|
boolean matched = false;
|
|
|
|
if (needle != null && haystack != null)
|
|
|
|
if (needle != null && haystack != null)
|
|
|
|
if (regex) {
|
|
|
|
if (regex) {
|
|
|
|
Pattern pattern = Pattern.compile(needle);
|
|
|
|
Pattern pattern = Pattern.compile(needle, Pattern.DOTALL);
|
|
|
|
matched = pattern.matcher(haystack).matches();
|
|
|
|
matched = pattern.matcher(haystack).matches();
|
|
|
|
} else
|
|
|
|
} else
|
|
|
|
matched = haystack.toLowerCase().contains(needle.trim().toLowerCase());
|
|
|
|
matched = haystack.toLowerCase().contains(needle.trim().toLowerCase());
|
|
|
|