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

handle irregular strings #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vonpetersenn
Copy link

Defining a split_words function to handle strings such as 'chī\fàn'. Before, handling \ would not have been possible.

Before, words would simply split along " " before further processing. Now the method of splitting words generalizes to cases where words are seperated for example by "\", which is necessary when working with databases that handle VOs that way (Pleco for example).

defining a split_words function to handle strings such as 'chī\\fàn'. Before, handling \\ would not have been possible.
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.

1 participant