using FileManager.NamingTemplate; using System.Collections.Generic; using System.Text.RegularExpressions; #nullable enable namespace LibationFileManager.Templates; internal partial class SeriesListFormat : IListFormat { public static string Formatter(ITemplateTag _, IEnumerable? series, string formatString) => series is null ? string.Empty : IListFormat.Join(formatString, series); /// Format must have at least one of the string {N}, {#}, {ID} [GeneratedRegex(@"[Ff]ormat\((.*?(?:{[N#]}|{ID})+.*?)\)")] public static partial Regex FormatRegex(); }