From c8067325ad73467d3912ac11d42f99961247e1bc Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 9 Aug 2021 19:53:27 +0000 Subject: [PATCH] --- source/Plugins/AyaNova.Plugin.V8/util.cs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/source/Plugins/AyaNova.Plugin.V8/util.cs b/source/Plugins/AyaNova.Plugin.V8/util.cs index a00e11e..d19550b 100644 --- a/source/Plugins/AyaNova.Plugin.V8/util.cs +++ b/source/Plugins/AyaNova.Plugin.V8/util.cs @@ -333,19 +333,7 @@ namespace AyaNova.PlugIn.V8 return inObj; } - /// - /// Trim a string if necessary - /// - /// - /// - /// - 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