diff options
Diffstat (limited to 'bridge/launchpad')
-rw-r--r-- | bridge/launchpad/config.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bridge/launchpad/config.go b/bridge/launchpad/config.go index 006c7fce..0bf8dc0d 100644 --- a/bridge/launchpad/config.go +++ b/bridge/launchpad/config.go @@ -90,10 +90,7 @@ func validateProject(project string) (bool, error) { // extract project name from url func splitURL(url string) (string, error) { - re, err := regexp.Compile(`launchpad\.net[\/:]([^\/]*[a-z]+)`) - if err != nil { - panic("regexp compile:" + err.Error()) - } + re := regexp.MustCompile(`launchpad\.net[\/:]([^\/]*[a-z]+)`) res := re.FindStringSubmatch(url) if res == nil { |