Skip to content

Commit

Permalink
Merge pull request #1252 from gorhill/fix1251
Browse files Browse the repository at this point in the history
Fixes #1251
  • Loading branch information
chrisaljoudi committed Apr 13, 2015
2 parents e8572bd + f2f4569 commit edd30ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/uritools.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var reRFC3986 = /^([^:\/?#]+:)?(\/\/[^\/?#]*)?([^?#]*)(\?[^#]*)?(#.*)?/;
// Derived
var reSchemeFromURI = /^[^:\/?#]+:/;
var reAuthorityFromURI = /^(?:[^:\/?#]+:)?(\/\/[^\/?#]+)/;
var reCommonHostnameFromURL = /^https?:\/\/([0-9a-z_][0-9a-z._-]+)\//;
var reCommonHostnameFromURL = /^https?:\/\/([0-9a-z_][0-9a-z._-]*[0-9a-z])\//;

// These are to parse authority field, not parsed by above official regex
// IPv6 is seen as an exception: a non-compatible IPv6 is first tried, and
Expand Down

0 comments on commit edd30ec

Please sign in to comment.