We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 677d59d commit c8c8801Copy full SHA for c8c8801
src/libraries/System.Collections.Immutable/src/System/Collections/Frozen/String/KeyAnalyzer.cs
@@ -109,7 +109,7 @@ private static AnalysisResults CreateAnalysisResults(
109
foreach (string s in uniqueStrings)
110
{
111
// Get the span for the substring.
112
- ReadOnlySpan<char> substring = s.AsSpan();
+ ReadOnlySpan<char> substring = count == 0 ? s.AsSpan() : Slicer(s, index, count);
113
114
// If the substring isn't ASCII, bail out to return the results.
115
if (!IsAllAscii(substring))
0 commit comments