Fix #1905 bug where in IE the use of RegExp.test() was failing and needed to be repla...