whatwg-url 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/URL-impl.js +1 -0
- package/lib/url-state-machine.js +2 -2
- package/package.json +1 -1
package/lib/URL-impl.js
CHANGED
package/lib/url-state-machine.js
CHANGED
|
@@ -711,7 +711,7 @@ URLStateMachine.prototype["parse authority"] = function parseAuthority(c, cStr)
|
|
|
711
711
|
return true;
|
|
712
712
|
};
|
|
713
713
|
|
|
714
|
-
URLStateMachine.prototype["parse
|
|
714
|
+
URLStateMachine.prototype["parse hostname"] =
|
|
715
715
|
URLStateMachine.prototype["parse host"] = function parseHostName(c, cStr) {
|
|
716
716
|
if (c === 58 && !this.arrFlag) {
|
|
717
717
|
if (specialSchemas[this.url.scheme] !== undefined && this.buffer === "") {
|
|
@@ -726,7 +726,7 @@ URLStateMachine.prototype["parse host"] = function parseHostName(c, cStr) {
|
|
|
726
726
|
this.url.host = host;
|
|
727
727
|
this.buffer = "";
|
|
728
728
|
this.state = "port";
|
|
729
|
-
if (this.stateOverride === "
|
|
729
|
+
if (this.stateOverride === "hostname") {
|
|
730
730
|
return false;
|
|
731
731
|
}
|
|
732
732
|
} else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
|
package/package.json
CHANGED