Skip to content

Commit b130a45

Browse files
theletterfclaude
andcommitted
fix: use StringComparison.Ordinal in StartsWith (CA1310)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2d70836 commit b130a45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/services/Elastic.Documentation.Assembler/Navigation/NavigationPrefixChecker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ private static bool IsPhantomOrDescendant(Uri phantom, Uri candidate) =>
155155
candidate.Scheme == phantom.Scheme &&
156156
candidate.Host == phantom.Host &&
157157
(candidate.AbsolutePath == phantom.AbsolutePath ||
158-
candidate.AbsolutePath.StartsWith(phantom.AbsolutePath.TrimEnd('/') + '/'));
158+
candidate.AbsolutePath.StartsWith(phantom.AbsolutePath.TrimEnd('/') + '/', StringComparison.Ordinal));
159159

160160
private async Task<RepositoryLinks> ReadLocalLinksJsonAsync(string localLinksJson, Cancel ctx)
161161
{

0 commit comments

Comments
 (0)