summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/libutil.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/libutil.cc b/crawl-ref/source/libutil.cc
index afeff90058..542bbbc162 100644
--- a/crawl-ref/source/libutil.cc
+++ b/crawl-ref/source/libutil.cc
@@ -295,6 +295,10 @@ std::string pluralise(const std::string &name,
return pluralise(name.substr(0, pos)) + name.substr(pos);
}
}
+
+ if (!name.empty() && name[name.length() - 1] == ')'
+ && (pos = name.rfind(" (")) != std::string::npos)
+ return (pluralise(name.substr(0, pos)) + name.substr(pos));
if (ends_with(name, "us"))
// Fungus, ufetubus, for instance.