ruby / stringio

Pseudo `IO` class from/to `String`.
BSD 2-Clause "Simplified" License
33 stars 26 forks source link

Fix each with multiple character string and chomp #30

Closed jeremyevans closed 2 years ago

jeremyevans commented 2 years ago

Previously, this could result in an infinite loop. Always update the e pointer in this case, setting w when chomping so the chomped data is not included in the output.

Fixes [Bug #18769]