Skip to content

Commit a6f08d2

Browse files
committed
Change singularization for dash cases
1 parent d013b61 commit a6f08d2

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Rules/UseSingularNouns.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,8 @@ private string GetLastWordInCmdlet(string cmdletName)
170170
{
171171
if (cmdletName[i] == '-')
172172
{
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);
173+
// We got to the dash without seeing a CamelCase word, so nothing to singularize
174+
return null;
181175
}
182176

183177
// We just changed from lower case to upper, so we have the end word

0 commit comments

Comments
 (0)