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

关于破折号中英文转换 #134

Open
sunui opened this issue May 10, 2019 · 1 comment
Open

关于破折号中英文转换 #134

sunui opened this issue May 10, 2019 · 1 comment

Comments

@sunui
Copy link

sunui commented May 10, 2019

我看到替换标点符号的代码没有处理破折号

convertToFullwidth(symbols) {
return symbols
.replace(/~/g, '~')
.replace(/!/g, '!')
.replace(/;/g, ';')
.replace(/:/g, ':')
.replace(/,/g, ',')
.replace(/\./g, '。')
.replace(/\?/g, '?');
}

请问是否考虑把“--”或者 “-” 或者“—”替换成“——”?

@vinta
Copy link
Owner

vinta commented May 10, 2019

我之前有想過,考慮考慮

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

2 participants