🐛 Bug: Dedent not working with carriage returns \r #94
Labels
status: in discussion
Not yet ready for implementation or a pull request
type: bug
Something isn't working :(
Bug Report Checklist
main
branch of the repository.Expected
I've got code that splits a string by newlines and carriage returns into lines. I've got a test that checks that newlines and carriage returns have been removed.
When console.logging
lines
, I would expect to see the below:Actual
What I actually see when I console.log
lines
is this. It appears the \r is not removed, and \\r is added in.Additional Info
I can get my use-case working by not using dedent, so I'm not blocked, but I sure would like to use dedent to make my strings look nicer!
The text was updated successfully, but these errors were encountered: