fix(esppSync, dal, api): Исправление после удаления старых ShortCodes
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using PARR.Constants.Shortcodes;
|
||||
using System.Text.Encodings.Web;
|
||||
using System.Text.Encodings.Web;
|
||||
using System.Text.Json;
|
||||
using System.Text.Unicode;
|
||||
|
||||
@@ -46,11 +45,11 @@ namespace PARR.DAL.Extensions
|
||||
/// <param name="shortcode">Код шаблона из PARR.Constants.ShortcodeEnum.ShortcodeEnum</param>
|
||||
/// <param name="shortcodeValue">Итоговое строковое значение</param>
|
||||
/// <returns></returns>
|
||||
public static string ApplyShortcode(this string sourceString, ShortcodeEnum shortcode, string shortcodeValue)
|
||||
{
|
||||
var shortcodeName = Shortcodes.GetShortcodeName(shortcode);
|
||||
//public static string ApplyShortcode(this string sourceString, ShortcodeEnum shortcode, string shortcodeValue)
|
||||
//{
|
||||
// var shortcodeName = Shortcodes.GetShortcodeName(shortcode);
|
||||
|
||||
return sourceString.Replace(shortcodeName, shortcodeValue);
|
||||
}
|
||||
// return sourceString.Replace(shortcodeName, shortcodeValue);
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user