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

fix "\n" conversion in filter_str #73

Merged
merged 2 commits into from
Mar 14, 2024
Merged

Conversation

Rudxain
Copy link
Member

@Rudxain Rudxain commented Mar 14, 2024

I noticed an off-by-one error when iterating, which (I expect) would convert this:

"rick\nroll"

into this

rick
nroll

I haven't ran any tests, I just debugged it in my mind.

This is a draft, because I want to know if this was intentional, and bc I'll replace the code by a slice-&-replace, which is less bug-prone

Copy link
Member

@SatinWukerORIG SatinWukerORIG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow,, that seems like a big mistake made by me. Thank you

@SatinWukerORIG SatinWukerORIG marked this pull request as ready for review March 14, 2024 19:20
@Rudxain
Copy link
Member Author

Rudxain commented Mar 14, 2024

I forgot to convert from "draft" to "ready" 😅

@SatinWukerORIG
Copy link
Member

It is fine lol, I will merge it now.

@SatinWukerORIG SatinWukerORIG merged commit 6b49e13 into Rick-Lang:main Mar 14, 2024
0 of 4 checks passed
@Rudxain Rudxain deleted the patch-1 branch March 15, 2024 01:46
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

Successfully merging this pull request may close these issues.

2 participants