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

ES2024: Well-Formed Unicode Strings #1715

Open
azu opened this issue Feb 10, 2024 · 0 comments
Open

ES2024: Well-Formed Unicode Strings #1715

azu opened this issue Feb 10, 2024 · 0 comments

Comments

@azu
Copy link
Collaborator

azu commented Feb 10, 2024

Well-Formed Unicode Strings

孤立したサロゲートペアを発見するメソッド。

encodeURIComponent("\uD800")

のような孤立したサロゲートペアを受け取ると例外を投げる文字列の判定に利用できる。

サロゲートペア では、特に孤立したサロゲートペアについては触れていない。
そのため、追加するかはちょっと微妙。コラム的に書くのはありかもしれないぐらいな印象

\ude3dは単独では表示できないため、文字化けのように表示されます

イメージ的には、これを判定するには? という感じで書きたい感じもするが強いユースケースが一般にはない気がしてるので、検討して追加するかしないかを決める

TODO

Originally posted by @azu in #1706 (comment)

@azu azu changed the title Well-Formed Unicode Strings ES2024: Well-Formed Unicode Strings Feb 10, 2024
@azu azu added this to the v6(ES2024) milestone Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant