diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2012-07-22 22:23:32 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-07-22 22:23:32 -0400 |
commit | c14a6b385fa419ce67f115e853fb4a89d8bd8fad (patch) | |
tree | c3214778d8bd142388c73b0c6a899372fd95a950 /src/ajax.js | |
parent | 74cc5b0984335532ab272b8286566000c4bf3daf (diff) | |
download | jquery-c14a6b385fa419ce67f115e853fb4a89d8bd8fad.tar.gz jquery-c14a6b385fa419ce67f115e853fb4a89d8bd8fad.zip |
Clean up regexen; use common regex for numbers. Close gh-862.
Diffstat (limited to 'src/ajax.js')
-rw-r--r-- | src/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js index 053bd696b..304a41d48 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -12,7 +12,7 @@ var // Document location rquery = /\?/, rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, rts = /([?&])_=[^&]*/, - rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/, + rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, // Keep a copy of the old load method _load = jQuery.fn.load, |