Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1197 from weaveworks/issue/1195-resources-names-h…
Browse files Browse the repository at this point in the history
…ave-dots

Allow dots in resource names
  • Loading branch information
squaremo authored Jul 4, 2018
2 parents 932b7b2 + d961a6d commit d2c48cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flux.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ var (
ErrInvalidServiceID = errors.New("invalid service ID")

LegacyServiceIDRegexp = regexp.MustCompile("^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$")
ResourceIDRegexp = regexp.MustCompile("^([a-zA-Z0-9_-]+):([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$")
UnqualifiedResourceIDRegexp = regexp.MustCompile("^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$")
ResourceIDRegexp = regexp.MustCompile("^([a-zA-Z0-9_-]+):([a-zA-Z0-9_-]+)/([a-zA-Z0-9_.-]+)$")
UnqualifiedResourceIDRegexp = regexp.MustCompile("^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_.-]+)$")
)

// ResourceID is an opaque type which uniquely identifies a resource in an
Expand Down

0 comments on commit d2c48cb

Please sign in to comment.