diff options
author | rwldrn <waldron.rick@gmail.com> | 2011-04-28 14:11:34 -0400 |
---|---|---|
committer | timmywil <tim.willison@thisismedium.com> | 2011-04-28 16:06:13 -0400 |
commit | 57f56be04f18f25fbf313973c1d8ce685fa05d3e (patch) | |
tree | 4baeac6338c917c87a97a7ca2ec3a5b47c61fd7e /src/ajax.js | |
parent | 632cd6c4ba625ed1586b5c09140614ee3eef867f (diff) | |
download | jquery-57f56be04f18f25fbf313973c1d8ce685fa05d3e.tar.gz jquery-57f56be04f18f25fbf313973c1d8ce685fa05d3e.zip |
Make cached rspaces regex definitions consistent. Fixes #9008
Diffstat (limited to 'src/ajax.js')
-rw-r--r-- | src/ajax.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ajax.js b/src/ajax.js index a16717b00..2d048479c 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -13,7 +13,7 @@ var r20 = /%20/g, rquery = /\?/, rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, rselectTextarea = /^(?:select|textarea)/i, - rspacesAjax = /\s+/, + rspaces = /\s+/, rts = /([?&])_=[^&]*/, rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/, @@ -71,7 +71,7 @@ function addToPrefiltersOrTransports( structure ) { } if ( jQuery.isFunction( func ) ) { - var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ), + var dataTypes = dataTypeExpression.toLowerCase().split( rspaces ), i = 0, length = dataTypes.length, dataType, @@ -599,7 +599,7 @@ jQuery.extend({ s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" ); // Extract dataTypes list - s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax ); + s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspaces ); // Determine if a cross-domain request is in order if ( s.crossDomain == null ) { |