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

Add splitLines helper function #109869

Merged
merged 3 commits into from Nov 4, 2020
Merged

Add splitLines helper function #109869

merged 3 commits into from Nov 4, 2020

Conversation

mjbvz
Copy link
Contributor

@mjbvz mjbvz commented Nov 2, 2020

I noticed there are a lot of places in our codebase what split strings using a hardcoded /\r\n|\r|\n/ regular expression. This change extracts that to a new strings.splitLines helper

@mjbvz mjbvz added this to the November 2020 milestone Nov 2, 2020
@mjbvz mjbvz self-assigned this Nov 2, 2020
I noticed there are a lot of places in our codebase what split strings using a hardcoded `/\r\n|\r|\n/` regular expression. This change extracts that to a new `strings.splitLines` helper
@mjbvz
Copy link
Contributor Author

mjbvz commented Nov 2, 2020

This came out of fixing #105428

@mjbvz mjbvz closed this in ad1dc7f Nov 2, 2020
@mjbvz mjbvz reopened this Nov 2, 2020
@mjbvz mjbvz merged commit c2dafdd into microsoft:master Nov 4, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants