git-url-parse icon indicating copy to clipboard operation
git-url-parse copied to clipboard

trailing slash results in different parsing on https urls

Open unitysipu opened this issue 2 years ago • 0 comments

>>> p = giturlparse.parse("https://github.com/test/foo/")
>>> p
Parsed(pathname='foo/', protocols=['https'], protocol='ssh', href='https://github.com/test/foo/', resource='test', user=None, port=None, name=None, owner='foo')

>>> p = giturlparse.parse("https://github.com/test/foo")
>>> p
Parsed(pathname='/test/foo', protocols=['https'], protocol='https', href='https://github.com/test/foo', resource='github.com', user=None, port=None, name='foo', owner='test')

unitysipu avatar Feb 07 '22 10:02 unitysipu