diff --git a/bundles/org.openhab.core.model.rule.runtime/src/org/openhab/core/model/rule/runtime/internal/DSLRuleProvider.java b/bundles/org.openhab.core.model.rule.runtime/src/org/openhab/core/model/rule/runtime/internal/DSLRuleProvider.java index b8817d7b4..0d92c9307 100644 --- a/bundles/org.openhab.core.model.rule.runtime/src/org/openhab/core/model/rule/runtime/internal/DSLRuleProvider.java +++ b/bundles/org.openhab.core.model.rule.runtime/src/org/openhab/core/model/rule/runtime/internal/DSLRuleProvider.java @@ -129,7 +129,7 @@ public class DSLRuleProvider @Override public void modelChanged(String modelFileName, EventType type) { - String ruleModelName = modelFileName.substring(0, modelFileName.indexOf(".")); + String ruleModelName = modelFileName.substring(0, modelFileName.lastIndexOf(".")); switch (type) { case ADDED: EObject model = modelRepository.getModel(modelFileName);