mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-31 05:24:26 +02:00
Fix missing regex replace escaping in DslRuleConverter (#5653)
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com> Co-authored-by: Ravi Nadahar <nadahar@rediffmail.com>
This commit is contained in:
+1
-1
@@ -329,7 +329,7 @@ public class DslRuleConverter implements RuleSerializer, RuleParser {
|
||||
if (!scriptContent.endsWith("\n")) {
|
||||
scriptContent += '\n';
|
||||
}
|
||||
generated = m.replaceFirst(scriptContent);
|
||||
generated = m.replaceFirst(Matcher.quoteReplacement(scriptContent));
|
||||
}
|
||||
}
|
||||
m = PLACEHOLDER_PATTERN.matcher(generated);
|
||||
|
||||
Reference in New Issue
Block a user