diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-05-30 12:50:21 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-05-30 12:50:21 +0200 |
commit | ebebdfdf35b29b37b5a164d73bc00ca1c2b8e895 (patch) | |
tree | ce460730f1055afcaa5bdfcc5472354ab672b60d /bridge/github/config.go | |
parent | d064a7127ec612a804e08143c7098bbc60332e83 (diff) | |
download | git-bug-ebebdfdf35b29b37b5a164d73bc00ca1c2b8e895.tar.gz |
add unit tests for launchpad bridge configuration
add tests for validateUsername in Github bridge
panic when compile regex fail
Diffstat (limited to 'bridge/github/config.go')
-rw-r--r-- | bridge/github/config.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/github/config.go b/bridge/github/config.go index c48c11f6..4a3bddfb 100644 --- a/bridge/github/config.go +++ b/bridge/github/config.go @@ -418,7 +418,7 @@ func splitURL(url string) (owner string, project string, err error) { re, err := regexp.Compile(`github\.com[/:]([a-zA-Z0-9\-_]+)/([a-zA-Z0-9\-_.]+)`) if err != nil { - return "", "", err + panic("regexp compile:" + err.Error()) } res := re.FindStringSubmatch(cleanURL) |