Yes, but `\s` means all whitespace.

Firefox and Chrome:

        > "\n abc \n".trim()
        "abc"

So this is where the spaces are being wrongly removed. If you merge this patch, you'll see that it fixes the problem.