Skip to content

Conversation

@binkkatal
Copy link
Contributor

RemoveLineBreaks removes all line breaks from a string using a regex.
As per https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html#lineending,
Any Unicode linebreak sequence, is equivalent to \u000D\u000A|[\u000A\u000B\u000C\u000D\u0085\u2028\u2029] .

@binkkatal
Copy link
Contributor Author

@patil-ashutosh , do i need to setup codecov token for this PR to be merged ?

result := "One,two three!'"
output := rstring.RemoveLineBreaks(input)
diff := reflect.DeepEqual(result, output)

Copy link
Owner

Choose a reason for hiding this comment

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

@binkkatal please modify method such that we can test for multiple inputs with ease, check other methods in this file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@patil-ashutosh , added subtest , ready for re-review

@patil-ashutosh
Copy link
Owner

patil-ashutosh commented Oct 7, 2020

@binkkatal you need to refresh branch first. might be need to resolve conflicts

How to refresh branch:
https://stackoverflow.com/questions/7244321/how-do-i-update-a-github-forked-repository
https://medium.com/@topspinj/how-to-git-rebase-into-a-forked-repo-c9f05e821c8a

Or let me know , I will resolve conflicts

RemoveLineBreaks removes all line breaks from a string using a regex. As per https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html#lineending, Any Unicode linebreak sequence, is equivalent to \u000D\u000A|[\u000A\u000B\u000C\u000D\u0085\u2028\u2029] .
@binkkatal binkkatal force-pushed the feature/17_line_breaks branch from 6ea4655 to 3932dc4 Compare October 7, 2020 17:58
@binkkatal
Copy link
Contributor Author

@patil-ashutosh , rebased, was waiting for the token missing fix

@patil-ashutosh
Copy link
Owner

@binkkatal Thanks for working on this. You can also work on open new issue/feature relevant to this repo

@patil-ashutosh patil-ashutosh merged commit 482f36b into patil-ashutosh:master Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants