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

Improve handling of empty strings with neutral_tone_with_five #279

Merged
merged 1 commit into from
May 27, 2022

Conversation

Ban3
Copy link
Contributor

@Ban3 Ban3 commented May 27, 2022

Improve handling of empty strings with neutral_tone_with_five

Currently, the tone number is added to the input even if it's empty:

>>> tone_to_tone3('', neutral_tone_with_five=True)
'5'

This change makes the converter return the unchanged string instead.

Copy link
Owner

@mozillazg mozillazg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks for your contribution!

@mozillazg
Copy link
Owner

The CI system is broken. I'll take a look at it.

@mozillazg mozillazg merged commit adbe233 into mozillazg:develop May 27, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants