diff --git a/svr.js b/svr.js index f614cee..75f6a63 100644 --- a/svr.js +++ b/svr.js @@ -1359,7 +1359,7 @@ function parseURL(uri, prepend) { var hasSlashes = (uri.indexOf("/") != -1); // Parse the URL using regular expression - var parsedURI = uri.match(/^(?:([^:]+:)(\/\/)?)?(?:([^@:\/?#\*]+)@)?([^:\/?#\*]+|\[[^\*]\/]\])?(?::([0-9]+))?(\*|\/[^?#]*)?(\?[^#]*)?(#[\S\s]*)?/); + var parsedURI = uri.match(/^(?:([^:]+:)(\/\/)?)?(?:([^@\/?#\*]+)@)?([^:\/?#\*]+|\[[^\*]\/]\])?(?::([0-9]+))?(\*|\/[^?#]*)?(\?[^#]*)?(#[\S\s]*)?/); // Match 1: protocol // Match 2: slashes after protocol // Match 3: authentication credentials