Skip to content

Commit

Permalink
update to 1.14.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rweng committed Mar 1, 2015
1 parent d0a81c9 commit 2d1c166
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 75 deletions.
2 changes: 1 addition & 1 deletion vendor/assets/javascripts/IPv6.js
Expand Up @@ -2,7 +2,7 @@
* URI.js - Mutating URLs
* IPv6 Support
*
* Version: 1.14.1
* Version: 1.14.2
*
* Author: Rodney Rehm
* Web: http://medialize.github.io/URI.js/
Expand Down
2 changes: 1 addition & 1 deletion vendor/assets/javascripts/SecondLevelDomains.js
Expand Up @@ -2,7 +2,7 @@
* URI.js - Mutating URLs
* Second Level Domain (SLD) Support
*
* Version: 1.14.1
* Version: 1.14.2
*
* Author: Rodney Rehm
* Web: http://medialize.github.io/URI.js/
Expand Down
27 changes: 16 additions & 11 deletions vendor/assets/javascripts/URI.js
@@ -1,7 +1,7 @@
/*!
* URI.js - Mutating URLs
*
* Version: 1.14.1
* Version: 1.14.2
*
* Author: Rodney Rehm
* Web: http://medialize.github.io/URI.js/
Expand Down Expand Up @@ -57,7 +57,7 @@
return this;
}

URI.version = '1.14.1';
URI.version = '1.14.2';

var p = URI.prototype;
var hasOwn = Object.prototype.hasOwnProperty;
Expand Down Expand Up @@ -462,15 +462,20 @@
if (parts.port === '/') {
parts.port = null;
}
} else if (string.indexOf(':') !== string.lastIndexOf(':')) {
// IPv6 host contains multiple colons - but no port
// this notation is actually not allowed by RFC 3986, but we're a liberal parser
parts.hostname = string.substring(0, pos) || null;
parts.port = null;
} else {
t = string.substring(0, pos).split(':');
parts.hostname = t[0] || null;
parts.port = t[1] || null;
var firstColon = string.indexOf(':');
var firstSlash = string.indexOf('/');
var nextColon = string.indexOf(':', firstColon + 1);
if (nextColon !== -1 && (firstSlash === -1 || nextColon < firstSlash)) {
// IPv6 host contains multiple colons - but no port
// this notation is actually not allowed by RFC 3986, but we're a liberal parser
parts.hostname = string.substring(0, pos) || null;
parts.port = null;
} else {
t = string.substring(0, pos).split(':');
parts.hostname = t[0] || null;
parts.port = t[1] || null;
}
}

if (parts.hostname && string.substring(pos).charAt(0) !== '/') {
Expand Down Expand Up @@ -689,7 +694,7 @@
data[name] = undefined;
}
} else {
throw new TypeError('URI.addQuery() accepts an object, string as the first parameter');
throw new TypeError('URI.removeQuery() accepts an object, string as the first parameter');
}
};
URI.hasQuery = function(data, name, value, withinArray) {
Expand Down
118 changes: 59 additions & 59 deletions vendor/assets/javascripts/URI.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vendor/assets/javascripts/URITemplate.js
Expand Up @@ -2,7 +2,7 @@
* URI.js - Mutating URLs
* URI Template Support - http://tools.ietf.org/html/rfc6570
*
* Version: 1.14.1
* Version: 1.14.2
*
* Author: Rodney Rehm
* Web: http://medialize.github.io/URI.js/
Expand Down
2 changes: 1 addition & 1 deletion vendor/assets/javascripts/jquery.URI.js
Expand Up @@ -2,7 +2,7 @@
* URI.js - Mutating URLs
* jQuery Plugin
*
* Version: 1.14.1
* Version: 1.14.2
*
* Author: Rodney Rehm
* Web: http://medialize.github.io/URI.js/jquery-uri-plugin.html
Expand Down
2 changes: 1 addition & 1 deletion vendor/assets/javascripts/jquery.URI.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2d1c166

Please sign in to comment.