GoogleChromeLabs / native-url

Node's url module implemented using the built-in URL API.
https://npm.im/native-url
Apache License 2.0
284 stars 11 forks source link

bug: New lines are disregarded #14

Closed Timer closed 4 years ago

Timer commented 4 years ago

Expected Behavior

> url.parse(`?lf=before${encodeURI('\n')}after`).search
'?lf=before%0Aafter'

Actual Behavior

> require('native-url').parse(`?lf=before${encodeURI('\n')}after`).search
'?lf=beforeafter'

Steps to Reproduce the Problem

N/A

Specifications

Timer commented 4 years ago

Fixed by #16