url: fix parsing of ssh urls
authorEvan Lucas <evanlucas@me.com>
Mon, 12 Jan 2015 06:13:17 +0000 (00:13 -0600)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 12 Jan 2015 09:56:41 +0000 (10:56 +0100)
commita1e54d6fb72ef0e0d3aab9ed2bf88d60a4a419d9
treede0edc356f7078a427304e39c3f9ab569e47def6
parent70c2501373cdc2cf58a927823891e14054063136
url: fix parsing of ssh urls

Fix regression introduced in 61204720361824881aefd64f5bccda7d7be6617a
that broke parsing of some ssh: urls.

An example url is ssh://git@github.com:npm/npm.git

PR-URL: https://github.com/iojs/io.js/pull/299
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
lib/url.js
test/parallel/test-url.js