diff --git a/src/HexManiac.Core/Core/SystemExtensions.cs b/src/HexManiac.Core/Core/SystemExtensions.cs index 099c7156..b03ec231 100644 --- a/src/HexManiac.Core/Core/SystemExtensions.cs +++ b/src/HexManiac.Core/Core/SystemExtensions.cs @@ -251,6 +251,7 @@ namespace HavenSoft.HexManiac.Core { /// public static int SkipCount(this string full, string partial) { int j = 0, skipCount = 0; + partial = partial.ToUpper(); for (int i = 0; i < partial.Length; i++) { var testPartial = char.ToUpperInvariant(partial[i]); @@ -262,6 +263,7 @@ namespace HavenSoft.HexManiac.Core { if (full[j] == 'รก') testFull = 'A'; j++; if (testFull == testPartial) break; + if (testFull == partial[0] && i == 1) skipCount = 0; if (j == full.Length) return skipCount; if (i > 0) skipCount++; }