| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent add4b0a commit c88ba03
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -196,7 +196,7 @@ Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) { | |||
| 196 | 196 | this.query = this.search.slice(1); | |
| 197 | 197 | } | |
| 198 | 198 | } else if (parseQueryString) { | |
| 199 | - this.search = ''; | ||
| 199 | + this.search = null; | ||
| 200 | 200 | this.query = Object.create(null); | |
| 201 | 201 | } | |
| 202 | 202 | return this; | |
@@ -389,7 +389,7 @@ Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) { | |||
| 389 | 389 | } | |
| 390 | 390 | } else if (parseQueryString) { | |
| 391 | 391 | // no query string, but parseQueryString still requested | |
| 392 | - this.search = ''; | ||
| 392 | + this.search = null; | ||
| 393 | 393 | this.query = Object.create(null); | |
| 394 | 394 | } | |
| 395 | 395 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,7 +36,7 @@ const parseTestsWithQueryString = { | |||
| 36 | 36 | host: 'example.com', | |
| 37 | 37 | hostname: 'example.com', | |
| 38 | 38 | query: createWithNoPrototype(), | |
| 39 | - search: '', | ||
| 39 | + search: null, | ||
| 40 | 40 | pathname: '/', | |
| 41 | 41 | path: '/' | |
| 42 | 42 | }, | |
@@ -48,7 +48,7 @@ const parseTestsWithQueryString = { | |||
| 48 | 48 | port: null, | |
| 49 | 49 | hostname: null, | |
| 50 | 50 | hash: null, | |
| 51 | - search: '', | ||
| 51 | + search: null, | ||
| 52 | 52 | query: createWithNoPrototype(), | |
| 53 | 53 | pathname: '/example', | |
| 54 | 54 | path: '/example', | |
| Back | FazBrowse Home | New Git URL |
0 commit comments