|
@@ -68,16 +68,13 @@ public class MatchLogic {
|
|
return value.equals(thresholds.get(0));
|
|
return value.equals(thresholds.get(0));
|
|
} else if ("not_equal".equals(condition)) {
|
|
} else if ("not_equal".equals(condition)) {
|
|
return !value.equals(thresholds.get(0));
|
|
return !value.equals(thresholds.get(0));
|
|
- }
|
|
|
|
- for (String thro : thresholds) {
|
|
|
|
- if ("contain".equals(condition)) {
|
|
|
|
- if (value.contains(thro)) {
|
|
|
|
- return true;
|
|
|
|
- }
|
|
|
|
- } else if ("no_contain".equals(condition)) {
|
|
|
|
- if (!value.contains(thro)) {
|
|
|
|
- return true;
|
|
|
|
- }
|
|
|
|
|
|
+ } else if ("contain".equals(condition)) {
|
|
|
|
+ if (thresholds.toString().contains(value)) {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ } else if ("no_contain".equals(condition)) {
|
|
|
|
+ if (!thresholds.toString().contains(value)) {
|
|
|
|
+ return true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|