Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ad-si opened this issue Dec 13, 2022 · 1 comment

Comments

@ad-si
Copy link

ad-si commented Dec 13, 2022

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

Here is an example on Ellie:

https://ellie-app.com/kr7KLBVx8xQa1

@ad-si ad-si changed the title Bug: rightOf does not work with trailing newline after the pattern Bug: rightOf/leftOf does not work with trailing newline after/before the pattern Feb 21, 2023
@ad-si
Copy link
Author

ad-si commented Feb 21, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant