We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0922ce8 commit f756fc7Copy full SHA for f756fc7
routers/api/packages/generic/generic.go
@@ -18,8 +18,8 @@ import (
18
)
19
20
var (
21
- packageNameRegex = regexp.MustCompile(`\A[A-Za-z0-9\.\_\-\+]+\z`)
22
- filenameRegex = packageNameRegex
+ packageNameRegex = regexp.MustCompile(`\A[-_+.A-Za-z0-9]+\z`)
+ filenameRegex = regexp.MustCompile(`\A[-_+=:;.()\[\]{}~!@#$%^& A-Za-z0-9]+\z`)
23
24
25
func apiError(ctx *context.Context, status int, obj any) {
0 commit comments