Skip to content

Commit a55cd67

Browse files
U4-4650 Pluralization of document type aliases doesn't always work
1 parent afa81be commit a55cd67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Umbraco.Core/StringExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public static string DecryptWithMachineKey(this string value)
135135
//this is from SqlMetal and just makes it a bit of fun to allow pluralisation
136136
public static string MakePluralName(this string name)
137137
{
138-
if ((name.EndsWith("x", StringComparison.OrdinalIgnoreCase) || name.EndsWith("ch", StringComparison.OrdinalIgnoreCase)) || (name.EndsWith("ss", StringComparison.OrdinalIgnoreCase) || name.EndsWith("sh", StringComparison.OrdinalIgnoreCase)))
138+
if ((name.EndsWith("x", StringComparison.OrdinalIgnoreCase) || name.EndsWith("ch", StringComparison.OrdinalIgnoreCase)) || (name.EndsWith("s", StringComparison.OrdinalIgnoreCase) || name.EndsWith("sh", StringComparison.OrdinalIgnoreCase)))
139139
{
140140
name = name + "es";
141141
return name;

0 commit comments

Comments
 (0)