We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7d1c81 commit d6ed04fCopy full SHA for d6ed04f
client.go
@@ -7,7 +7,6 @@ import (
7
"io/ioutil"
8
"net/http"
9
"net/url"
10
- "regexp"
11
"strconv"
12
"sync"
13
"time"
@@ -362,13 +361,3 @@ func (c *Client) DeleteProject(name string) error {
362
361
func (c *Client) Close() error {
363
return nil
364
}
365
-
366
-func parseRegionFromEndpoint(endpoint string) string {
367
- exp := regexp.MustCompile(
368
- `^(?:https?:\/\/)?([a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)+?)(?:-intranet|-share)?\..*`)
369
- matches := exp.FindStringSubmatch(endpoint)
370
- if len(matches) != 2 {
371
- return ""
372
- }
373
- return matches[1]
374
-}
0 commit comments