Skip to content

Commit

Permalink
Merge pull request #214 from h-matsuo/delete-unnecessary-validation
Browse files Browse the repository at this point in the history
Delete unnecessary validation on orb's versions
  • Loading branch information
Zachary Scott authored Nov 28, 2018
2 parents 034bfb0 + b53fccb commit 898431e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions references/references.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ func SplitIntoOrbNamespaceAndVersion(ref string) (namespace, orb, version string

errorMessage := fmt.Errorf("Invalid orb reference '%s': Expected a namespace, orb and version in the format 'namespace/orb@version'", ref)

if len(strings.Split(ref, "/")) != 2 {
return "", "", "", errorMessage
}

re := regexp.MustCompile("^(.+)/(.+)@(.+)$")

matches := re.FindStringSubmatch(ref)
Expand Down

0 comments on commit 898431e

Please sign in to comment.