Update lib/galaxy/util/inflection.py

Co-authored-by: Nicola Soranzo <nicola.soranzo@gmail.com>
This commit is contained in:
Sergey Golitsynskiy
2020-06-23 14:39:43 -04:00
committed by GitHub
co-authored by Nicola Soranzo
parent 6f9b65619d
commit 733dfd8383
+1 -1
View File
@@ -102,7 +102,7 @@ class Inflector(object):
lower_cased_word = word.lower()
# Check if word is an item or the suffix of any item in NONCHANGING_WORDS
for nonchanging_word in self.NONCHANGING_WORDS:
if lower_cased_word[-len(nonchanging_word):] == nonchanging_word:
if lower_cased_word.endswith(uncountable_word):
return word
def _handle_irregular(self, word, pluralize=True):