Skip to content

Commit

Permalink
Relax command name even more (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg authored Jun 28, 2022
1 parent 0ecab58 commit b0c39fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion acmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func isStringValid(s string) bool {
}
for _, c := range s {
if !(('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z') ||
('0' <= c && c <= '9') || c == '-' || c == '_' || c == ':') {
('0' <= c && c <= '9') || c == '-' || c == '_' || c == ':' || c == '.') {
return false
}
}
Expand Down
2 changes: 1 addition & 1 deletion acmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func TestRunnerInit(t *testing.T) {
wantErrStr string
}{
{
cmds: []Command{{Name: "app:create", Do: nopFunc}},
cmds: []Command{{Name: "app:cre.ate", Do: nopFunc}},
wantErrStr: ``,
},
{
Expand Down

0 comments on commit b0c39fe

Please sign in to comment.