Skip to content

Commit

Permalink
Fix bug with cutting
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Mar 1, 2024
1 parent af69d06 commit e023442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/gossamer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ object Cuttable:
@tailrec
def recur(start: Int, results: List[TextType]): List[TextType] =
string.indexOf(delimiter.s) match
case -1 => Nil
case -1 => List(textual.slice(text, start, text.length))
case index => recur(index + dLength, textual.slice(text, start, index) :: results)

IArray.from(recur(0, Nil).reverse)(using textual.classTag)
Expand Down

0 comments on commit e023442

Please sign in to comment.