Skip to content

Commit

Permalink
bake: allow dot in target name
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Mar 17, 2022
1 parent 1ca30a5 commit d7cd766
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bake/bake.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var (
httpPrefix = regexp.MustCompile(`^https?://`)
gitURLPathWithFragmentSuffix = regexp.MustCompile(`\.git(?:#.+)?$`)

validTargetNameChars = `[a-zA-Z0-9_-]+`
validTargetNameChars = `[a-zA-Z0-9._-]+`
targetNamePattern = regexp.MustCompile(`^` + validTargetNameChars + `$`)
)

Expand Down
2 changes: 1 addition & 1 deletion bake/bake_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ func TestTargetName(t *testing.T) {
},
{
target: "a.b",
wantErr: true,
wantErr: false,
},
{
target: "_a",
Expand Down

0 comments on commit d7cd766

Please sign in to comment.