Comment

Comment by vova_hn2

This is really funny and I do feel ashamed for my laziness.

I didn't expect ChatGPT to make such trivial mistake, although, I have no idea which model do they use on the free plan these days.

The correct code is, of course:

    text.replace("—", "\U00010EAD\U00010EAC")
...in case anyone is curious.
parent vova_hn2 7 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton