Skip to content

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

@CjS77

Description

@CjS77

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions