split-lines

added
1.2

ns
clojure.string

type
function

(split-lines s)

Splits s on \
or \\r\
.

                user=> (clojure.string/split-lines "test \
 string")
["test " " string"]
            
                ; ignores trailing newlines
user=> (clojure.string/split-lines "test\
\
")
["test"]