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

do not remove space after '/' #195

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

Conversation

ppwwyyxx
Copy link

This PR adds a few more test cases - all of them fail before this PR. #194 also talks about these failed cases.

However, after this PR, the existing test case

assert.equal(pangu.spacing('/home/和/root是Linux中的頂級目錄'), '/home/ 和 /root 是 Linux 中的頂級目錄');

will fail.

I think there is no way to make both work, and I think the new test cases are more important & common than the old special test case mentioning linux file system structure like "/home".

Also, when mentioning "/home", writers should better quote them - I modified the test case to add quotes.

Fix #194

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