|
@@ -3174,8 +3174,11 @@ namespace MainForm
|
|
/// <param name="format"></param>
|
|
/// <param name="format"></param>
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
private static string FormatStrbyPLC(string format) {
|
|
private static string FormatStrbyPLC(string format) {
|
|
-
|
|
|
|
- string cleanedString = Regex.Replace(format, @"[\r\n\t]", "");
|
|
|
|
|
|
+ string cleanedString = "";
|
|
|
|
+ if (!string.IsNullOrEmpty(format))
|
|
|
|
+ {
|
|
|
|
+ cleanedString = Regex.Replace(format, @"[\r\n\t]", "");
|
|
|
|
+ }
|
|
return cleanedString;
|
|
return cleanedString;
|
|
}
|
|
}
|
|
|
|
|