Skip to content

Commit

Permalink
Update npmNaming range (close #401)
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Aug 11, 2022
1 parent b661af8 commit 097dd5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var (
regFullVersionPath = regexp.MustCompile(`([^/])@\d+\.\d+\.\d+[a-zA-Z0-9\.\+\-_]*(/|$)`)
regBuildVersionPath = regexp.MustCompile(`^/v\d+/`)
regLocPath = regexp.MustCompile(`(\.[a-z]+):\d+:\d+$`)
npmNaming = valid.Validator{valid.FromTo{'a', 'z'}, valid.FromTo{'0', '9'}, valid.Eq('.'), valid.Eq('_'), valid.Eq('-')}
npmNaming = valid.Validator{valid.FromTo{'a', 'z'}, valid.FromTo{'A', 'Z'}, valid.FromTo{'0', '9'}, valid.Eq('.'), valid.Eq('_'), valid.Eq('-')}
)

type stringSet struct {
Expand Down

0 comments on commit 097dd5d

Please sign in to comment.