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:59 -04:00
committed by GitHub
co-authored by Nicola Soranzo
parent 733dfd8383
commit 7e85a8f360
+1 -1
View File
@@ -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)