* Match git URLs with trailing slashes.
* Certain classes of invalid URLs no longer crash.
* Preserve case of the user name part of shortcut specifiers, previously
they were lowercased.
Fixes: https://github.com/npm/hosted-git-info/issues/15
Fixes: https://github.com/npm/hosted-git-info/issues/16
Credit: @iarna