Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
A string containing one emoji has length == 7 in JS and 17 in Rust
(
hsivonen.fi
)
4 points
by
ozornin
on Dec 30, 2024
|
hide
|
past
|
favorite
|
3 comments
retrac
on Dec 30, 2024
[–]
It seems that on HN " ".length == 1 as the emoji has been replaced with a space.
ozornin
on Dec 30, 2024
|
parent
[–]
true. fixed the title
retrac
on Dec 30, 2024
|
root
|
parent
[–]
It's ironically appropriate. Not sure if it's a [bug emoji] or a stylistic choice to not allow emoji on HN, but it does illustrate how variable handling of emoji can be.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: