diff options
-rw-r--r-- | bridge/core/bridge.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bridge/core/bridge.go b/bridge/core/bridge.go index 112c56ea..91ed5bfb 100644 --- a/bridge/core/bridge.go +++ b/bridge/core/bridge.go @@ -90,7 +90,7 @@ func DefaultBridge(repo *cache.RepoCache) (*Bridge, error) { } if len(bridges) > 1 { - return nil, fmt.Errorf("multiple bridge configured") + return nil, fmt.Errorf("multiple bridge are configured, you need to select one explicitely") } target, name, err := splitFullName(bridges[0]) @@ -119,7 +119,7 @@ func ConfiguredBridges(repo repository.RepoCommon) ([]string, error) { return nil, errors.Wrap(err, "can't read configured bridges") } - re, err := regexp.Compile(`git-bug.bridge.([^\.]+\.[^\.]+)`) + re, err := regexp.Compile(`git-bug.bridge.([^.]+\.[^.]+)`) if err != nil { panic(err) } @@ -149,7 +149,7 @@ func ConfiguredBridges(repo repository.RepoCommon) ([]string, error) { // Remove a configured bridge func RemoveBridge(repo repository.RepoCommon, fullName string) error { - re, err := regexp.Compile(`^[^\.]+\.[^\.]+$`) + re, err := regexp.Compile(`^[^.]+\.[^.]+$`) if err != nil { panic(err) } |