diff --git a/parser/parser.go b/parser/parser.go index ec5cd95f..c89b13e6 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -24,6 +24,7 @@ func Parse(reader io.Reader) ([]Command, error) { var command, modelCommand Command scanner := bufio.NewScanner(reader) + scanner.Buffer(make([]byte, 0, bufio.MaxScanTokenSize), bufio.MaxScanTokenSize) scanner.Split(scanModelfile) for scanner.Scan() { line := scanner.Bytes()