WikiFunctions.Parse.Parsers.FullYearRangeME C# (CSharp) Method

FullYearRangeME() private static method

private static FullYearRangeME ( Match m ) : string
m Match
return string
        private static string FullYearRangeME(Match m)
        {
            int year1 = Convert.ToInt32(m.Groups[2].Value), year2 = Convert.ToInt32(m.Groups[3].Value);

            if (year2 > year1 && year2 - year1 <= 300)
                return m.Groups[1].Value + m.Groups[2].Value + (m.Groups[1].Value.ToLower().Contains("c") ? @" – " : @"–") + m.Groups[3].Value;

            return m.Value;
        }
Parsers