Merge pull request #651 from btelles/master
Fix for IE8 and jQuery 1.7.1 compatibility.
This commit is contained in:
commit
1178b03f37
1 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ define(function(require, exports, module) {
|
||||||
RegExp.prototype.exec = function (str) {
|
RegExp.prototype.exec = function (str) {
|
||||||
var match = real.exec.apply(this, arguments),
|
var match = real.exec.apply(this, arguments),
|
||||||
name, r2;
|
name, r2;
|
||||||
if (match) {
|
if ( typeof(str) == 'string' && match) {
|
||||||
// Fix browsers whose `exec` methods don't consistently return `undefined` for
|
// Fix browsers whose `exec` methods don't consistently return `undefined` for
|
||||||
// nonparticipating capturing groups
|
// nonparticipating capturing groups
|
||||||
if (!compliantExecNpcg && match.length > 1 && indexOf(match, "") > -1) {
|
if (!compliantExecNpcg && match.length > 1 && indexOf(match, "") > -1) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue