StorytellerDocGen.Topics.Topic.applyExplicitUrlSegment C# (CSharp) Method

applyExplicitUrlSegment() private static method

private static applyExplicitUrlSegment ( IEnumerable comments, Topic topic ) : void
comments IEnumerable
topic Topic
return void
        private static void applyExplicitUrlSegment(IEnumerable<string> comments, Topic topic)
        {
            var rawUrl = comments.FirstOrDefault(x => x.StartsWith("Url:", StringComparison.OrdinalIgnoreCase));
            if (rawUrl.IsNotEmpty())
            {
                topic.UrlSegment = rawUrl.Split(':').Last().Trim();
            }
        }