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
7e85a8f360
commit
b89eda6f01
@@ -96,7 +96,7 @@ class Inflector(object):
|
||||
return word
|
||||
|
||||
def _transform(self, rules, word, pluralize=True):
|
||||
return self._handle_nonchanging(word) or self._handle_irregular(word, pluralize=pluralize) or self._apply_rule(rules, word) or word
|
||||
return self._handle_nonchanging(word) or self._handle_irregular(word, pluralize=pluralize) or self._apply_rules(rules, word) or word
|
||||
|
||||
def _handle_nonchanging(self, word):
|
||||
lower_cased_word = word.lower()
|
||||
|
||||
Reference in New Issue
Block a user