fix(templateSync): фикс фильтра шаблонов
This commit is contained in:
@@ -108,8 +108,9 @@ 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.TemplatePrefixWithoutVariable) || !templateName.Contains(settingsFromDb.TemplatePrefixWithoutVariable)) // , StringComparison.CurrentCultureIgnoreCase
|
||||
if (string.IsNullOrEmpty(settingsFromDb.TemplatePrefixWithoutVariable) || !templateName.Contains(settingsFromDb.TemplatePrefixWithoutVariable)) // , StringComparison.CurrentCultureIgnoreCase
|
||||
{
|
||||
logger.LogWarning($"Имя шаблона не соответствует обязательному префиксу({settingsFromDb.TemplatePrefixWithoutVariable}). Шаблон {templateName} игнорирован");
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user