dominictarr / event-stream

EventStream is like functional programming meets IO
MIT License
2.19k stars 149 forks source link

Read Me Change Only #107

Closed Rolias closed 6 years ago

Rolias commented 6 years ago

I struggled a bit to figure out why all my line breaks were not being maintained. Maintaining line breaks seems like it would be a pretty common use case. The fact that they are lost is a result of the underlying split package. Rather than make other users discover this it seems worthwhile to add a note about this directly to the documentation on your package.

dominictarr commented 6 years ago

it works the same as String.split, so if you use a regular expression with a group /(\n)/ it will keep them. merging.