We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2333e4c commit 5eeedc8Copy full SHA for 5eeedc8
lib/url.js
@@ -536,6 +536,9 @@ function autoEscapeStr(rest) {
536
break;
537
}
538
539
+ if (lastEscapedPos === 0) // Nothing has been escaped.
540
+ return rest;
541
+
542
// There are ordinary characters at the end.
543
if (lastEscapedPos < rest.length)
544
escaped += rest.slice(lastEscapedPos);
0 commit comments