File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ var r20 = /%20/g,
19
19
rucHeadersFunc = function ( _ , $1 , $2 ) {
20
20
return $1 + $2 . toUpperCase ( ) ;
21
21
} ,
22
- rurl = / ^ ( [ \w \+ \. \- ] + : ) \/ \/ ( [ ^ \/ ? # : ] * ) (?: : ( \d + ) ) ? / ,
22
+ rurl = / ^ ( [ \w \+ \. \- ] + : ) (?: \/ \/ ( [ ^ \/ ? # : ] * ) (?: : ( \d + ) ) ? | \/ [ ^ \/ ] ) / ,
23
23
24
24
// Keep a copy of the old load method
25
25
_load = jQuery . fn . load ,
Original file line number Diff line number Diff line change @@ -2239,6 +2239,18 @@ test("jQuery.ajax - active counter", function() {
2239
2239
ok ( jQuery . active == 0 , "ajax active counter should be zero: " + jQuery . active ) ;
2240
2240
} ) ;
2241
2241
2242
+ test ( "jQuery.ajax - compatible with AIR urls" ) , function ( ) {
2243
+ expect ( 1 ) ;
2244
+ stop ( ) ;
2245
+ $ . ajax ( {
2246
+ url : "app:/testing" ,
2247
+ beforeSend : function ( ) {
2248
+ ok ( this . crossDomain , "Detected crossDomain for AIR Url" ) ;
2249
+ return false ;
2250
+ }
2251
+ } ) ;
2252
+ } ) ;
2253
+
2242
2254
}
2243
2255
2244
2256
//}
You can’t perform that action at this time.
0 commit comments