X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FString.php;h=7c0897436508acb9f83c494f343981706c3b235c;hb=d6ec1535f89c868fecc6cbbf221fe1abce1eec16;hp=8ffc390096fd850f21de324560b2655eba96797b;hpb=93317f78c6697070f432fe4bdaf3769d2fdf3e93;p=civicrm-core.git diff --git a/CRM/Utils/String.php b/CRM/Utils/String.php index 8ffc390096..7c08974365 100644 --- a/CRM/Utils/String.php +++ b/CRM/Utils/String.php @@ -944,7 +944,7 @@ class CRM_Utils_String { if ($lastLetter == 's' || $lastLetter == 'x' || $lastTwo == 'ch') { return $str . 'es'; } - if ($lastLetter == 'y' && $lastTwo != 'ey') { + if ($lastLetter == 'y' && !in_array($lastTwo, ['ay', 'ey', 'iy', 'oy', 'uy'])) { return substr($str, 0, -1) . 'ies'; } return $str . 's';