This commit is contained in:
2019-01-16 22:45:42 +00:00
parent d19becea1b
commit 1aaf7e8879

View File

@@ -100,7 +100,12 @@ namespace AyaNova.Biz
public static string TranslateLTCustomFieldToInternalCustomFieldName(string lTCustomFieldName)
{
var i = int.Parse(lTCustomFieldName);
var i = System.Convert.ToInt32(System.Text.RegularExpressions.Regex.Replace(
lTCustomFieldName, // Our input
"[^0-9]", // Select everything that is not in the range of 0-9
"" // Replace that with an empty string.
));
return $"c{i}";
}