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 d013b61 commit a6f08d2Copy full SHA for a6f08d2
Rules/UseSingularNouns.cs
@@ -170,14 +170,8 @@ private string GetLastWordInCmdlet(string cmdletName)
170
{
171
if (cmdletName[i] == '-')
172
173
- // Cmdlet name ends in '-' -- we give up
174
- if (i == cmdletName.Length - 1)
175
- {
176
- return null;
177
- }
178
-
179
- // Return everything after the dash
180
- return cmdletName.Substring(i + 1);
+ // We got to the dash without seeing a CamelCase word, so nothing to singularize
+ return null;
181
}
182
183
// We just changed from lower case to upper, so we have the end word
0 commit comments