Skip to content
Permalink
Browse files

Fix #1905 bug where in IE the use of RegExp.test() was failing and ne…

…eded to be replaced with String.match().
  • Loading branch information
davids549 committed Nov 16, 2007
1 parent e2ef3df commit 6853370fbb631a1d40d63c295626b7af6b0c7755
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ajax.js
@@ -174,7 +174,7 @@ jQuery.extend({
}

// Build temporary JSONP function
if ( s.dataType == "json" && (s.data && jsre.test( s.data ) || s.url.match(jsre)) ) {
if ( s.dataType == "json" && (s.data && s.data.match(jsre) || s.url.match(jsre)) ) {
jsonp = "jsonp" + jsc++;

// Replace the =? sequence both in the query string and the data

0 comments on commit 6853370

Please sign in to comment.
You can’t perform that action at this time.