Last active
September 6, 2017 17:10
-
-
Save gkatsev/a4091c4102fcbfd36e3864100a6ea2c5 to your computer and use it in GitHub Desktop.
undocumented breaking change in url.format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url = require('url') | |
url.format({host: 'google.com', pathname: 'foo', slashes: true}) | |
// > '//google.com/foo' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url = require('url') | |
url.format({host: 'google.com', pathname: 'foo'}) | |
// > '//google.com/foo' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url = require('url') | |
url.format({host: 'google.com', pathname: 'foo'}) | |
// > 'google.comfoo' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue nodejs/node#11103