Skip to content

Commit

Permalink
Merge pull request #179 from opentofu/add-at-to-paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Yantrio authored Sep 5, 2024
2 parents cbada58 + 6dd22be commit 724a63b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/internal/indexstorage/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type Path string

const MaxPathLength = 255

var pathPartRe = regexp.MustCompile("^[a-zA-Z0-9_.-]+(/[a-zA-Z0-9_.-]+)*$")
var pathPartRe = regexp.MustCompile("^[a-zA-Z0-9_.@-]+(/[a-zA-Z0-9_.@-]+)*$")

func (p Path) Validate() error {
if len(p) > MaxPathLength {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type DocItemName string

const docItemNameMaxLength = 255

var docItemNameRe = regexp.MustCompile("^[a-zA-Z0-9 ._-]+$")
var docItemNameRe = regexp.MustCompile("^[a-zA-Z0-9 ._@-]+$")

func (n DocItemName) Validate() error {
if len(n) > docItemNameMaxLength || !docItemNameRe.MatchString(string(n)) {
Expand Down

0 comments on commit 724a63b

Please sign in to comment.