isaacs/node-url — pull request #3 by jackwanders (2014-02-28 17:50:39+00:00)
Title: use a regex to find the first non-host character

I was looking into how your url package parsed URLs, and I thought I'd suggest a more compact way to find the index of the first non-host character.

While not super-important, here's a jsperf of the two methods: http://jsperf.com/loop-vs-regex-for-node-url-parse