Skip to content

Commit

Permalink
Merge pull request #614 from adriansr/numbers_in_packages_are_cool
Browse files Browse the repository at this point in the history
Allow numbers in package names
  • Loading branch information
adriansr authored Aug 3, 2020
2 parents 3bd6e11 + 4cce002 commit 4bd9675
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

* Allow numbers in package names. [#614](https://github.com/elastic/package-registry/pull/614)

### Deprecated

### Known Issue
Expand Down
2 changes: 1 addition & 1 deletion artifacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/elastic/package-registry/archiver"
)

const artifactsRouterPath = "/epr/{packageName}/{packageName:[a-z_]+}-{packageVersion}.tar.gz"
const artifactsRouterPath = "/epr/{packageName}/{packageName:[a-z0-9_]+}-{packageVersion}.tar.gz"

var errArtifactNotFound = errors.New("artifact not found")

Expand Down
2 changes: 1 addition & 1 deletion package_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

const (
packageIndexRouterPath = "/package/{packageName:[a-z_]+}/{packageVersion}/"
packageIndexRouterPath = "/package/{packageName:[a-z0-9_]+}/{packageVersion}/"
)

var errPackageRevisionNotFound = errors.New("package revision not found")
Expand Down

0 comments on commit 4bd9675

Please sign in to comment.