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

空格被错误移除 #194

Open
ppwwyyxx opened this issue May 17, 2022 · 3 comments · May be fixed by #195
Open

空格被错误移除 #194

ppwwyyxx opened this issue May 17, 2022 · 3 comments · May be fixed by #195

Comments

@ppwwyyxx
Copy link

遇到的問題

> pangu.spacing("吃apple / banana")
'吃 apple /banana'
> pangu.spacing("apple / banana")
'apple / banana'
> pangu
<ref *1> NodePangu {
  version: '4.0.7',
  default: [Circular *1],
  Pangu: [Function: NodePangu]
}

在第一个输出中, "banana"前的空格被移除.

我的预期行为是这个空格不应被移除.

@ppwwyyxx
Copy link
Author

This is also wrong:

╰$node dist/node/cli.js '好人 / bad guy'
好人 /bad guy
╰$node dist/node/cli.js '好人 / Bad Guy'
好人 / Bad Guy

@ppwwyyxx ppwwyyxx linked a pull request May 18, 2022 that will close this issue
@Angkitbharata
Copy link

遇到的問題

> pangu.spacing("吃apple /")
'吃 apple '
> pangu.spacing("apple / )
'apple /'
> pangu
<ref *1> NodePangu {
  version: '4.0.7',
  default: [Circular *1],
  Pangu: [Function: NodePangu]
}

在第一个输出中, "ini

@Angkitbharata
Copy link

Mr tickel by_Jf

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 a pull request may close this issue.

2 participants