mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-62339 Incorrect singularization "cookies -> cooky". Should convert to "cookie"
This commit is contained in:
@@ -1148,6 +1148,10 @@ public class StringUtil {
|
||||
}
|
||||
|
||||
if (name.endsWith("ies")) {
|
||||
if (name.endsWith("cookies") || name.endsWith("Cookies")) {
|
||||
return name.substring(0, name.length() - "ookies".length()) + "ookie";
|
||||
}
|
||||
|
||||
return name.substring(0, name.length() - 3) + "y";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user