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 ef21d48 commit d013b61Copy full SHA for d013b61
Rules/UseSingularNouns.cs
@@ -161,7 +161,7 @@ private string GetLastWordInCmdlet(string cmdletName)
161
}
162
163
// Cmdlet doesn't use CamelCase, so assume it's something like an initialism that shouldn't be singularized
164
- if (!char.IsLower(cmdletName[^1]))
+ if (!char.IsLower(cmdletName[cmdletName.Length - 1]))
165
{
166
return null;
167
0 commit comments