Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
querystringIssues and PRs related to the built-in querystring module.Issues and PRs related to the built-in querystring module.urlIssues and PRs related to the legacy built-in url module.Issues and PRs related to the legacy built-in url module.
Description
- Version: 7.3.0
- Platform:Mac
- Subsystem: 10.12.1
when parse a paramsString like "&&q=test&topic=api", where '&&' appear together, Node will get the result like this:
querystring.parse("&&q=test&topic=api")//=>{'': [ '', '' ], q: 'test', topic: 'api' }But in other environment, such as Chrome console, we will get the result below:
varparamsString="&&q=test&topic=api"varsearchParams=newURLSearchParams(paramsString);for(letpofsearchParams){console.log(p);}//=>["q", "test"],["topic", "api"]The same as python.
Metadata
Metadata
Assignees
Labels
querystringIssues and PRs related to the built-in querystring module.Issues and PRs related to the built-in querystring module.urlIssues and PRs related to the legacy built-in url module.Issues and PRs related to the legacy built-in url module.