MET08RESIMAPCDE - v2.43.4 - CDE2 Title bug fix

This commit is contained in:
2022-08-17 09:00:41 -07:00
parent 1d7368c44e
commit 2205b7918c
3 changed files with 9 additions and 3 deletions

View File

@ -269,7 +269,7 @@ public class ProcessData : IProcessData
else
{
// Remove illegal characters \/:*?"<>| found in the run.
title = Regex.Replace(text.Trim(), @"[\\,\/,\:,\*,\?,\"",\<,\>,\|]", "_").Split('\r')[0].Split('\n')[0];
title = Regex.Replace(text, @"[\\,\/,\:,\*,\?,\"",\<,\>,\|]", "_").Split('\r')[0].Split('\n')[0];
if (title.StartsWith("1T") || title.StartsWith("1t"))
title = title.Substring(2);
run = title;
@ -343,6 +343,10 @@ public class ProcessData : IProcessData
ScanPast("DEVICE:");
recipe = GetBefore("RESISTIVITY SPEC:");
}
title = title.Trim();
if (title[0] != '[' && title[title.Length - 1] != ']')
throw new Exception("Lot summary data is invalid or missing.");
title = title.Substring(1, title.Length - 2);
Descriptor descriptor = GetDescriptor(title);
psn = descriptor.PSN;
rds = descriptor.RDS;