jbr/jQuery.highlightRegex — pull request #15 by nfriedly (2014-06-11 19:23:20+00:00)
Title: Fixing regex detection

In IE 11, `new RegExp('foo').constructor.name` is `undefined` so the plugin always confuses the regex with the options and never highlights anything.

This changes makes it also check `instanceof` which lets IE detect it correctly.