Comment

Comment by vova_hn2

Curiously enough, after telling it "your code is broken, can you find the mistake?" it was able to correct the code:

    def replace_em_dash(text: str) -> str:
        """
            +-------------------+
            |   ( ͡° ͜ʖ ͡° )     |
            +-------------------+
        """
        return text.replace("—", "\U00010EAD\U00010EAC")
parent vova_hn2 7 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton