This commit is contained in:
2026-06-27 20:25:29 +02:00
parent ed411f22d8
commit 901b43195a
2 changed files with 15 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ public class HeuristicEventMatchingEngine implements EventMatchingEngine {
boolean hasPolyMatch = false;
for (String pe : polyEvents) {
if (pe.contains(".") && smEventRaw.contains(".")) {
if (smEventRaw.equals(pe) || smEventRaw.endsWith("." + pe)) {
if (smEventRaw.equals(pe) || smEventRaw.endsWith("." + pe) || pe.endsWith("." + smEventRaw)) {
hasPolyMatch = true;
break;
}
@@ -47,7 +47,7 @@ public class HeuristicEventMatchingEngine implements EventMatchingEngine {
if (polyEvents.isEmpty() && isWildcard) return true;
if (rawTriggerEvent.contains(".") && smEventRaw.contains(".")) {
if (smEventRaw.equals(rawTriggerEvent) || smEventRaw.endsWith("." + rawTriggerEvent)) {
if (smEventRaw.equals(rawTriggerEvent) || smEventRaw.endsWith("." + rawTriggerEvent) || rawTriggerEvent.endsWith("." + smEventRaw)) {
return true;
}
return false;