Generate_Cnblogs_Articles_To_Markdown_Files.CnblogsHelper.GetFileName C# (CSharp) Method

GetFileName() private static method

private static GetFileName ( string articleUrl ) : string
articleUrl string
return string
        private static string GetFileName(string articleUrl)
        {
            if (articleUrl.Length > articleUrl.LastIndexOf("/") + 1)
                return articleUrl.Substring(articleUrl.LastIndexOf("/") + 1).Replace(".html", string.Empty) + ".md";
            return "path_error";
        }