Make cached rspaces regex definitions consistent. Fixes #9008
This commit is contained in:
parent
632cd6c4ba
commit
57f56be04f
2 changed files with 5 additions and 5 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue