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/
Description
Manual string-split to lines using
.split("\n")is more concisely written as.lines(), as bothsplit("\n")orsplit("\r\n")are buggy if your intention is to precisely extract lines from the text. For dynamic inputs using a more robust solution such aslines(), is preferred oversplit('\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/