This commit is contained in:
2021-08-09 19:53:27 +00:00
parent b0de1c5a14
commit c8067325ad

View File

@@ -333,19 +333,7 @@ namespace AyaNova.PlugIn.V8
return inObj;
}
/// <summary>
/// Trim a string if necessary
/// </summary>
/// <param name="s"></param>
/// <param name="maxLength"></param>
/// <returns></returns>
public static string MaxLength(string s, int maxLength)
{
if (s.Length > maxLength)
s = s.Substring(0, maxLength);
return s;
}
//clean up tags from client submission
//remove dupes, substitute dashes for spaces, lowercase and shorten if exceed 255 chars
//and sorts before returning to ensure consistent ordering