Skip to content

Commit

Permalink
chore: suppress CA1846 message
Browse files Browse the repository at this point in the history
  • Loading branch information
filzrev committed Sep 20, 2023
1 parent 27c0251 commit c784799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Docfx.Common/Path/RelativePath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ private string[] UrlDecodeCore(bool safe)
var text = safe ? EncodedInvalidPartChars[chIndex] : EncodedUnsafeInvalidPartChars[chIndex];
var originIndex = origin.LastIndexOf(text, originLastIndex, StringComparison.OrdinalIgnoreCase);
originLastIndex = originIndex - 1;
sb.Insert(index, origin.Substring(originIndex, text.Length));
sb.Insert(index, origin.AsSpan(originIndex, text.Length));
}
parts[i] = modified ? sb.ToString() : value;
if (sb != null)
Expand Down

0 comments on commit c784799

Please sign in to comment.