Subversion Repositories LCARS

Compare Revisions

Last modification

Ignore whitespace Rev 298 → Rev 297

/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(r'{0}$'.format(expression), phrase)
expression_match = match(expression, phrase)
if expression_match is not None:
data[self._language_key] = expression_match.group(0)
return data