Skip to content

Commit 07f0057

Browse files
committed
feat: implement Windows file path handling
1 parent 5b96b37 commit 07f0057

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/url-state-machine.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,7 @@ URLStateMachine.prototype["parse scheme"] = function parseScheme(c, cStr) {
577577
this.buffer += cStr.toLowerCase();
578578
} else if (c === p(":")) {
579579
// Windows drive letter
580-
if (!this.stateOverride &&
581-
this.buffer.length === 1 && infra.isASCIIAlpha(this.buffer.codePointAt(0)) &&
580+
if (this.buffer.length === 1 && infra.isASCIIAlpha(this.buffer.codePointAt(0)) &&
582581
this.input[this.pointer + 1] === p("\\")) {
583582
this.url.scheme = "file";
584583
this.url.host = "";

0 commit comments

Comments
 (0)