From 1868aa17c5eee4efdd54c80338f85f012d58c595 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Fri, 28 Oct 2016 12:28:24 -0700 Subject: [PATCH] [Style] Compare in Windows format where upper and lower case don't matter --- SabreTools.Helper/Tools/Style.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SabreTools.Helper/Tools/Style.cs b/SabreTools.Helper/Tools/Style.cs index 0978f0b2..5df9aaf3 100644 --- a/SabreTools.Helper/Tools/Style.cs +++ b/SabreTools.Helper/Tools/Style.cs @@ -283,6 +283,10 @@ namespace SabreTools.Helper.Tools /// public static int CompareNumeric(string s1, string s2) { + // We want to normalize the strings, so we set both to lower case + s1 = s1.ToLowerInvariant(); + s2 = s2.ToLowerInvariant(); + // If the strings are the same exactly, return if (s1 == s2) {