git-urls
git-urls copied to clipboard
git-urls parses git URLs
This should fix https://github.com/whilp/git-urls/issues/24. Need to bump version from `v1.0.0` to `v1.0.1` Otherwise I am going to have to start using my forked version since this shows up as a...
Go doesn't support look-ahead assertions so I did this out of the regexp.
_The regex on line 35. inside urls.go is vulnerable to regex denial of service when a long input is provided inside directory path of the git url. I managed to...
* `github.com/alecthomas/gometalinter` is [archived and deprecated](https://github.com/alecthomas/gometalinter), so this switches over to the current community favorite `github.com/golangci/golangci-lint` * remove the code coverage dep, as that code is [in the golang source...
parsing invalid URLs doesn't return errors e.g. ``` u, err := giturls.Parse("https:/lala") ```
Per @anachronistic: > so - i did a couple of benchmarks on the lib and found differing speeds + heap allocations depending on the incoming string > and i believe...
If you parse a git URL without `Userinfo` and then convert it back to string you get an extra "@" symbol. Consider the following code: ``` golang parsed, err :=...
There is an open vulnerability on the repo and looks like no one is maintaining the repo. There are forks available that has the fix. Should archive the repo.