diff --git a/pkg/common/scan.go b/pkg/common/scan.go index d92c357..08d2e90 100644 --- a/pkg/common/scan.go +++ b/pkg/common/scan.go @@ -14,7 +14,7 @@ func ScanLines(data []byte, atEOF bool) (advance int, token []byte, err error) { if loc := newlineReg.FindIndex(data); len(loc) > 0 { delimiterLen := 1 i := loc[0] - if i+1 < len(data) && data[i+1] == '\n' { + if i+1 < len(data) && data[i] == '\r' && data[i+1] == '\n' { delimiterLen = 2 } return i + delimiterLen, data[:i], nil