mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
Update lib/galaxy/util/inflection.py
Co-authored-by: Nicola Soranzo <nicola.soranzo@gmail.com>
This commit is contained in:
co-authored by
Nicola Soranzo
parent
6f9b65619d
commit
733dfd8383
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user