We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b621e2 commit 052e731Copy full SHA for 052e731
src/main/cljs/clojure/string.cljs
@@ -166,7 +166,8 @@
166
167
(defn split
168
"Splits string on a regular expression. Optional argument limit is
169
- the maximum number of splits. Not lazy. Returns vector of the splits."
+ the maximum number of parts. Not lazy. Returns vector of the parts.
170
+ Trailing empty strings are not returned - pass limit of -1 to return all."
171
([s re]
172
(split s re 0))
173
([s re limit]
@@ -189,7 +190,7 @@
189
190
(conj parts s))))))))))
191
192
(defn split-lines
- "Splits s on \\n or \\r\\n."
193
+ "Splits s on \\n or \\r\\n. Trailing empty lines are not returned."
194
[s]
195
(split s #"\n|\r\n"))
196
0 commit comments