From 1f45f7bb524d098c5636d410ae42e938863c99f8 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Mon, 17 Jul 2023 15:34:08 -0700 Subject: [PATCH] convert commands to uppercase in parser --- parser/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/parser.go b/parser/parser.go index 48a1bc28..698128b6 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -38,7 +38,7 @@ func Parse(reader io.Reader) ([]Command, error) { } command := Command{} - switch fields[0] { + switch strings.ToUpper(fields[0]) { case "FROM": command.Name = "model" command.Arg = fields[1]