Subversion Repositories LCARS

Compare Revisions

Last modification

Ignore whitespace Rev 297 → Rev 298

/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