fixed bugs related to index check and gc

This commit is contained in:
2025-04-05 09:42:39 +05:00
parent c4ab4028ae
commit 5de3a94a46
4 changed files with 19 additions and 7 deletions
+2 -1
View File
@@ -86,7 +86,8 @@ public static class SearchExpressionCompiler
ReadOnlySpan<char> remaining = default;
if (partBeforePointLength < query.Length)
remaining = query.Slice(partBeforePointLength + 1);
if (part is "*") return new AnyMatchExpression(remaining.IsEmpty ? null : Compile(remaining));
if (part is "*")
return new AnyMatchExpression(remaining.IsEmpty ? null : Compile(remaining));
for (int j = 0; j < part.Length; j++)
if (CharEqualsAndNotEscaped('*', part, j))