Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"6, 2020" is converted to "12120" #43

Open
winterblues opened this issue Sep 1, 2021 · 1 comment
Open

"6, 2020" is converted to "12120" #43

winterblues opened this issue Sep 1, 2021 · 1 comment

Comments

@winterblues
Copy link

text = "6, 2020"
t2d = text2digits.Text2Digits(convert_ordinals=True, add_ordinal_ending=False)
result = t2d.convert(text)

"12120"

I would have expected that the string is unchanged.

version used: 0.1.0

@winterblues
Copy link
Author

"6, 2021" --> "6, 2021" (as expected)
"6, 20" --> "6, 20" (as expected)

but:

"6, 1010" --> "6060"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant