Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parseRemoeUrl Regex not working well for specifics repository urls #24

Open
vitoralmeidabr opened this issue Oct 16, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@vitoralmeidabr
Copy link

Hi Marco, how're you ? Thanks for this project!
Its will place our project at other level about documentation!

Now, the problem lol, look this URL of my company private repo:
http://username@fontes.domain.com.br:7990/scm/site/name-of-repo.git

Its doesnt fit at your first regex option (where should fit), because named group "owner|repository" doenst accept dash or slash :
#^(?P<protocol>https?|git|ssh|rsync)\://(?:(?P<user>.+)@)*(?P<host>[a-z0-9_.-]*)[:/]*(?P<port>[\d]+){0,1}(?P<pathname>\/((?P<owner>[\w\-]+)\/)?((?P<repository>[\w\-\.]+?)(\.git|\/)?)?)$#smi

It's possible to adjust or create another regex option (maybe another item in .changelog options to add custom regex's.

Thanks in advanced!

@marcocesarato marcocesarato added the bug Something isn't working label Oct 16, 2021
@marcocesarato
Copy link
Owner

Hi, this should be solved on last release.
Anyway you can have slashes only on the owner. (Check here https://regex101.com/r/9SUzv6/1 )

At the moment isn't possibile insert a custom regex parser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants