Cleaned up the code from previous enhancements.

This commit is contained in:
Joseph Milazzo 2020-12-29 11:01:52 -06:00
parent 0a49b07570
commit 104c63b2b9
5 changed files with 24 additions and 108 deletions

View file

@ -1,11 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace API.Parser
{
public static class Parser
{
public static readonly string MangaFileExtensions = @"\.cbz|\.cbr|\.png|\.jpeg|\.jpg|\.zip|\.rar";
//?: is a non-capturing group in C#, else anything in () will be a group
private static readonly Regex[] MangaVolumeRegex = new[]
{
@ -217,7 +218,7 @@ namespace API.Parser
public static string RemoveLeadingZeroes(string title)
{
return title.TrimStart(new Char[] { '0' });
return title.TrimStart(new[] { '0' });
}
}
}