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

为了兼容4字节unicode字符,charCodeAt改为codePointAt #72

Merged
merged 1 commit into from Jul 18, 2019

Commits on May 24, 2019

  1. 为了兼容4字节unicode字符,charCodeAt改为codePointAt

    str.split('') 会将4字节unicode字符拆成两个字符,改为Array.from(str)
    text.charCodeAt(0) 只会识别4字节unicode字符的前两个字节,改为text.codePointAt(0)
    abeet committed May 24, 2019
    Configuration menu
    Copy the full SHA
    77e9480 View commit details
    Browse the repository at this point in the history