Skip to content

Commit ec1c68b

Browse files
committed
Fix IndexOfAny compilation on all target frameworks
1 parent 36d884f commit ec1c68b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FirebirdSql.Data.FirebirdClient/Trace/FbActivitySource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static string ExtractSqlVerb(string sql)
128128
if (string.IsNullOrEmpty(sql))
129129
return null;
130130
var span = sql.AsSpan().TrimStart();
131-
var spaceIndex = span.IndexOfAny(' ', '\t', '\n', '\r');
131+
var spaceIndex = span.IndexOfAny([' ', '\t', '\n', '\r']);
132132
if (spaceIndex <= 0)
133133
return span.Length > 0 ? span.ToString().ToUpperInvariant() : null;
134134
return span.Slice(0, spaceIndex).ToString().ToUpperInvariant();

0 commit comments

Comments
 (0)