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

(RS-W1217) Found potentially buggy split of string into lines #47

Open
CjS77 opened this issue Oct 16, 2022 · 0 comments
Open

(RS-W1217) Found potentially buggy split of string into lines #47

CjS77 opened this issue Oct 16, 2022 · 0 comments
Labels
C-Good_first_issue Good for newcomers

Comments

@CjS77
Copy link
Contributor

CjS77 commented Oct 16, 2022

Description

Manual string-split to lines using .split("\n") is more concisely written as .lines(), as both split("\n") or split("\r\n") are buggy if your intention is to precisely extract lines from the text. For dynamic inputs using a more robust solution such as lines(), is preferred over split('\n').

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/tari-project/gh-pilot/issue/RS-W1217/occurrences/

@CjS77 CjS77 added the C-Good_first_issue Good for newcomers label Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Good_first_issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant