| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a22d5e7 commit 6d674d4
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -162,8 +162,7 @@ Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) { | |||
| 162 | 162 | let end = -1; | |
| 163 | 163 | let rest = ''; | |
| 164 | 164 | let lastPos = 0; | |
| 165 | - let i = 0; | ||
| 166 | - for (let inWs = false, split = false; i < url.length; ++i) { | ||
| 165 | + for (let i = 0, inWs = false, split = false; i < url.length; ++i) { | ||
| 167 | 166 | const code = url.charCodeAt(i); | |
| 168 | 167 | ||
| 169 | 168 | // Find first and last non-whitespace characters for trimming | |
@@ -295,7 +294,7 @@ Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) { | |||
| 295 | 294 | let hostEnd = -1; | |
| 296 | 295 | let atSign = -1; | |
| 297 | 296 | let nonHost = -1; | |
| 298 | - for (i = 0; i < rest.length; ++i) { | ||
| 297 | + for (let i = 0; i < rest.length; ++i) { | ||
| 299 | 298 | switch (rest.charCodeAt(i)) { | |
| 300 | 299 | case CHAR_TAB: | |
| 301 | 300 | case CHAR_LINE_FEED: | |
@@ -411,7 +410,7 @@ Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) { | |||
| 411 | 410 | ||
| 412 | 411 | let questionIdx = -1; | |
| 413 | 412 | let hashIdx = -1; | |
| 414 | - for (i = 0; i < rest.length; ++i) { | ||
| 413 | + for (let i = 0; i < rest.length; ++i) { | ||
| 415 | 414 | const code = rest.charCodeAt(i); | |
| 416 | 415 | if (code === CHAR_HASH) { | |
| 417 | 416 | this.hash = rest.slice(i); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments