Claymore.TalkCleanupWikiBot.Cleanup.SubsectionsList C# (CSharp) Method

SubsectionsList() private method

private SubsectionsList ( WikiPageSection section, string aggregator ) : string
section WikiPageSection
aggregator string
return string
        private string SubsectionsList(WikiPageSection section,
           string aggregator)
        {
            Regex wikiLinkRE = new Regex(@"\[{2}(.+?)(\|.+?)?]{2}");
            Match m = wikiLinkRE.Match(section.Title);
            if (m.Success)
            {
                if (_l10i.Processor != null)
                {
                    aggregator = aggregator + " • " + _l10i.Processor(section).Trim();
                }
                else
                {
                    aggregator = aggregator + " • " + section.Title.Trim();
                }
            }
            aggregator = section.Reduce(aggregator, SubsectionsList);
            return aggregator;
        }