nephila / giturlparse

Parse & rewrite git urls (supports GitHub, Bitbucket, Assembla ...)
https://pypi.python.org/pypi/giturlparse
Apache License 2.0
31 stars 21 forks source link

in BasePlatform FORMATS should be PATTERNS and PATTERNS should be FORMATS #40

Closed godfryd closed 1 year ago

godfryd commented 2 years ago

Description

I tried to parse "http://localhost:3000/gitea/demo.git" and it fails because the base parser has switched settings i.e. BasePlatform's FORMATS and PATTERNS are switched.

Steps to reproduce

import giturlparse
giturlparse.parse("http://localhost:3000/gitea/demo.git")

and this raises an exception.

Versions

0.10.0

Expected behaviour

It should be parsed correctly.

Actual behaviour

Exception is raised.

yakky commented 1 year ago

Thanks @godfryd for reporting this, fixed in #50