namespace AIStudio.Tools.Services.Indexing; /// /// How the indexing writes values into the log. /// internal static class IndexingLogFormat { /// /// Shortens a hash or a signature to what is needed to tell two of them apart in the log. /// /// The hash or signature. /// Its first twelve characters, or a marker when it is empty. public static string ShortHash(string value) { if (string.IsNullOrWhiteSpace(value)) return ""; return value.Length <= 12 ? value : value[..12]; } }