I’m writing this one down because despite being burned by it before I still haven’t learned my lesson and got caught out once again. I thought that perhaps posting it up here would finally prompt me to remember it.
String.prototype.split
Whilst there are issues in several browsers, the biggest pain-in-the-butt award though has to go to… wait for it… IE.
Why does "...".split(/\\./) not produce the same result as "...".split(".")?
I know the old ES3 spec had some issues but really… aneurysm inducing stuff.