sindresorhus/normalize-url

Unexpected normalization: a.b.com gets protocol

Closed this issue · 1 comments

normalizeUrl("a.b.com"); // expected a.b.com, got http://a.b.com

Default for stripProtocol is false, but i didn't expect it to add a protocol for me - esp when other urls don't do that

ah maybe i just misunderstand how normalization is supposed to work, guess it adds a protocol if one isn't present?