Fix StartsWith equal length issue

This commit is contained in:
Matt Nadareski
2022-10-11 21:14:58 -07:00
parent 4e2c5313f3
commit 6184ae22aa

View File

@@ -88,7 +88,7 @@ namespace BurnOutSharp.Matching
return false;
// If we're too close to the end of the stack, return false
if (Needle.Length >= stack.Length - index)
if (Needle.Length > stack.Length - index)
return false;
for (int i = 0; i < Needle.Length; i++)