We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b70202e commit c50c34eCopy full SHA for c50c34e
txtar/archive.go
@@ -82,7 +82,7 @@ func ParseFile(file string) (*Archive, error) {
82
// The returned Archive holds slices of data.
83
func Parse(data []byte) *Archive {
84
a := new(Archive)
85
- i := bytes.IndexByte(data, '\n')
+ i := bytes.Index(data, newlineMarker)
86
if i > 0 && data[i-1] == '\r' {
87
a.UseCRLF = true
88
}
0 commit comments