Skip to content

parseRemoeUrl Regex not working well for specifics repository urls #24

@vitoralmeidabr

Description

@vitoralmeidabr

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions