feat(esppScheduleSync): метод ParseStrToEsppObject
This commit is contained in:
@@ -108,7 +108,7 @@ namespace PARR.EsppTemplateSync
|
||||
var templateName = splittedContent[0].Trim();
|
||||
|
||||
var currentCulture = Thread.CurrentThread.CurrentCulture;
|
||||
if (!string.IsNullOrEmpty(settingsFromDb.TemplatePrefixName) && !templateName.StartsWith(settingsFromDb.TemplatePrefixName, true, currentCulture))
|
||||
if (!string.IsNullOrEmpty(settingsFromDb.TemplatePrefixName) || !templateName.StartsWith(settingsFromDb.TemplatePrefixName, true, currentCulture))
|
||||
{
|
||||
logger.LogWarning($"Имя шаблона не соответствует обязательному префиксу({settingsFromDb.TemplatePrefixName}). Шаблон {templateName} игнорирован");
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user