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 88bfeed commit be61b74Copy full SHA for be61b74
journal/journal.go
@@ -144,7 +144,7 @@ func validVarName(name string) bool {
144
145
valid := name[0] != '_'
146
for _, c := range name {
147
- valid = valid && ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_'
+ valid = valid && (('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_')
148
}
149
return valid
150
journal/journal_test.go
@@ -35,6 +35,10 @@ func TestValidaVarName(t *testing.T) {
35
"test",
36
false,
37
},
38
+ {
39
+ "_TEST",
40
+ false,
41
+ },
42
43
44
for _, tt := range testCases {
0 commit comments