IME newline fix

This commit is contained in:
Oliver Kieselbach
2026-04-05 01:47:23 +02:00
parent 7b4b3071a4
commit b9b3ae9bc3
3 changed files with 5 additions and 3 deletions
@@ -170,7 +170,9 @@ namespace AutopilotMonitor.Agent.Core.Monitoring.Tracking
{
// Replace {GUID} placeholder with actual GUID capture regex
var regexStr = pattern.Pattern.Replace("{GUID}", GuidPattern);
var regex = new Regex(regexStr, RegexOptions.IgnoreCase | RegexOptions.Compiled, TimeSpan.FromSeconds(1));
// Singleline: make '.' match newlines too — required because multiline CMTrace
// entries are reassembled with '\n' chars (e.g. DO TEL JSON in IME >= 1.101)
var regex = new Regex(regexStr, RegexOptions.IgnoreCase | RegexOptions.Compiled | RegexOptions.Singleline, TimeSpan.FromSeconds(1));
var compiled = new CompiledPattern
{
@@ -298,7 +298,7 @@ namespace AutopilotMonitor.Agent
try
{
var regexStr = pattern.Pattern.Replace("{GUID}", GuidPattern);
var regex = new Regex(regexStr, RegexOptions.IgnoreCase | RegexOptions.Compiled, TimeSpan.FromSeconds(1));
var regex = new Regex(regexStr, RegexOptions.IgnoreCase | RegexOptions.Compiled | RegexOptions.Singleline, TimeSpan.FromSeconds(1));
compiled.Add(new MatchPattern
{
PatternId = pattern.PatternId,
@@ -1 +1 @@
837
838