Skip to content

Commit

Permalink
PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
rtxm committed Aug 25, 2020
1 parent b8c1de9 commit d8aed49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions text_to_num/lang/english.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ def ord2card(self, word: str) -> Optional[str]:
source = RAD_MAP[source]
elif source.endswith("ie"):
source = source[:-2] + "y"
elif source.endswith('fif'): # fifth -> five
elif source.endswith('fif'): # fifth -> five
source = source[:-1] + 've'
elif source.endswith('eigh'): # eighth -> eight
elif source.endswith('eigh'): # eighth -> eight
source = source + 't'
elif source.endswith('nin'): # ninth -> nine
elif source.endswith('nin'): # ninth -> nine
source = source + 'e'
if source not in self.NUMBERS:
return None
Expand Down

0 comments on commit d8aed49

Please sign in to comment.