Optionally ignoring case in String.prototype.contains()?

Domenic Denicola domenic at domenicdenicola.com
Wed Aug 28 10:55:06 PDT 2013

More to Norbert's point though, it should probably use the `iu` flag, not just the `i` flag.

(Also, you'd need to use the `RegExp.escape` that people keep talking about, most recently in the `RegExp.quoteText` thread. But that's minor.)

More information about the es-discuss mailing list