fix: Fix line endings for windows (#1169)

This commit is contained in:
TJ DeVries
2021-08-26 13:01:31 -07:00
committed by GitHub
parent 369691c6d9
commit dcee6c81f4

View File

@@ -152,7 +152,8 @@ function LinesPipe:iter(schedule)
return
end
return (previous or "") .. (read or "")
read = string.gsub(read or "", "\r", "")
return (previous or "") .. read
end
local next_value = nil