/trunk/tools/eazytrans/Dictionary.py |
---|
185,7 → 185,7 |
:type phrase: |
""" |
for expression, data in sorted(self._expressions.items(), key=lambda item:-len(item[1])): |
expression_match = match(expression, phrase) |
expression_match = match(r'{0}$'.format(expression), phrase) |
if expression_match is not None: |
data[self._language_key] = expression_match.group(0) |
return data |