fix: long strings JSON parsing (#672)

This commit is contained in:
Dima 2023-02-16 23:35:27 +07:00 committed by GitHub
parent 3635a0bbaa
commit ee0b9673ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ object FileOpts {
Files[F] Files[F]
.readAll(p) .readAll(p)
.through(fs2.text.utf8.decode) .through(fs2.text.utf8.decode)
.fold(List.empty[String]) { case (acc, str) => str :: acc } .fold(List.empty[String]) { case (acc, str) => acc :+ str }
.map(_.mkString("")) .map(_.mkString(""))
.map(str => transform(p, str).map(r => (p, r))) .map(str => transform(p, str).map(r => (p, r)))
.compile .compile