elm-community / string-extra

String helper functions for Elm.

Home Page:http://package.elm-lang.org/packages/elm-community/string-extra/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: rightOf/leftOf does not work with trailing newline after/before the pattern

ad-si opened this issue · comments

String.Extra.rightOf "_" "abc_\ndef" should return "\ndef", but returns ""

Here is an example on Ellie:

https://ellie-app.com/kr7KLBVx8xQa1

Same for leftOf:
String.Extra.leftOf "_" "abc\n_def" returns ""