Oops, I did not mean to suggest dropping the `g` flag.

  - `/[\n\r)/g` ✘
  - `/[\n\r]/g` ✘
  - `/[\n\r]+/` ✘

Fourth time lucky…

  - `/[\n\r]+/g` ✔

I'll make the change now. :)