whatwg-url 4.7.1 → 4.8.0
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/README.md +1 -1
- package/lib/url-state-machine.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ whatwg-url is a full implementation of the WHATWG [URL Standard](https://url.spe
|
|
|
4
4
|
|
|
5
5
|
## Current Status
|
|
6
6
|
|
|
7
|
-
whatwg-url is currently up to date with the URL spec up to commit [
|
|
7
|
+
whatwg-url is currently up to date with the URL spec up to commit [fe6b25](https://github.com/whatwg/url/commit/fe6b251739e225555f04319f19c70c031a5d99eb).
|
|
8
8
|
|
|
9
9
|
## API
|
|
10
10
|
|
package/lib/url-state-machine.js
CHANGED
|
@@ -928,9 +928,10 @@ URLStateMachine.prototype["parse file"] = function parseFile(c) {
|
|
|
928
928
|
this.url.fragment = "";
|
|
929
929
|
this.state = "fragment";
|
|
930
930
|
} else {
|
|
931
|
-
if (
|
|
932
|
-
this.input
|
|
933
|
-
|
|
931
|
+
if (this.input.length - this.pointer - 1 === 0 || // remaining consists of 0 code points
|
|
932
|
+
!isWindowsDriveLetterCodePoints(c, this.input[this.pointer + 1]) ||
|
|
933
|
+
(this.input.length - this.pointer - 1 >= 2 && // remaining has at least 2 code points
|
|
934
|
+
!fileOtherwiseCodePoints.has(this.input[this.pointer + 2]))) {
|
|
934
935
|
this.url.host = this.base.host;
|
|
935
936
|
this.url.path = this.base.path.slice();
|
|
936
937
|
shortenPath(this.url);
|