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
733dfd8383
commit
7e85a8f360
@@ -113,7 +113,7 @@ class Inflector(object):
|
||||
if match:
|
||||
return re.sub('(?i)' + form_a + '$', match.expand('\\1')[0] + form_b[1:], word)
|
||||
|
||||
def _apply_rule(self, rules, word):
|
||||
def _apply_rules(self, rules, word):
|
||||
for pattern, replacement in rules:
|
||||
if re.search(pattern, word):
|
||||
return re.sub(pattern, replacement, word)
|
||||
|
||||
Reference in New Issue
Block a user