typos
This commit is contained in:
parent
d4e11abd1d
commit
0ff4097a47
1 changed files with 2 additions and 3 deletions
|
|
@ -2808,7 +2808,7 @@ def str2int(number):
|
||||||
# e.g. twentieth, fortieth
|
# e.g. twentieth, fortieth
|
||||||
number = number[:-2] + "y"
|
number = number[:-2] + "y"
|
||||||
# custom case for ninth
|
# custom case for ninth
|
||||||
elif number[-3:] == "nin"
|
elif number[-3:] == "nin":
|
||||||
number += "e"
|
number += "e"
|
||||||
|
|
||||||
# split number words by spaces, hyphens and commas, to accommodate multiple styles
|
# split number words by spaces, hyphens and commas, to accommodate multiple styles
|
||||||
|
|
@ -2828,8 +2828,7 @@ def str2int(number):
|
||||||
# otherwise, it's added on, like the "five" in "twenty five"
|
# otherwise, it's added on, like the "five" in "twenty five"
|
||||||
else:
|
else:
|
||||||
sums.append(i)
|
sums.append(i)
|
||||||
else:
|
elif i := _STR2INT_ADJS.get(word):
|
||||||
elif i := STR2INT_ADJS.get(word):
|
|
||||||
# it's a special adj word; ordinal case will never be a multiplier
|
# it's a special adj word; ordinal case will never be a multiplier
|
||||||
sums.append(i)
|
sums.append(i)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue