diff options
author | Michael Muré <batolettre@gmail.com> | 2018-12-04 23:43:57 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-12-04 23:43:57 +0100 |
commit | e171448902867ed411906cc7db757804473a10ef (patch) | |
tree | 5d73d8da142b3be542e03cbc017543ea4eedbeeb /bridge/core/bridge.go | |
parent | a133cdffaf6e8e8ebda1acba12ca13887d78ffce (diff) | |
download | git-bug-e171448902867ed411906cc7db757804473a10ef.tar.gz |
bridge: simplify regex
Diffstat (limited to 'bridge/core/bridge.go')
-rw-r--r-- | bridge/core/bridge.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/core/bridge.go b/bridge/core/bridge.go index 96e959af..91ed5bfb 100644 --- a/bridge/core/bridge.go +++ b/bridge/core/bridge.go @@ -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) } |