Unverified Commit fc40a4f1 authored by Michael Yang's avatar Michael Yang Committed by GitHub
Browse files

Merge pull request #234 from jmorganca/fix-parse-license

use max scan token size to hold large objects
parents 6ed3ec0c 9c7f30d3
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment